Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mhc_rank
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick Skillman-Lawrence
mhc_rank
Commits
a79b7ed9
Commit
a79b7ed9
authored
7 years ago
by
Tim O'Donnell
Browse files
Options
Downloads
Patches
Plain Diff
fix linting
parent
116242d3
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lint.sh
+1
-1
1 addition, 1 deletion
lint.sh
mhcflurry/parallelism.py
+2
-2
2 additions, 2 deletions
mhcflurry/parallelism.py
with
3 additions
and
3 deletions
lint.sh
+
1
−
1
View file @
a79b7ed9
...
...
@@ -10,6 +10,6 @@ set -o errexit
find
.
-name
'*.py'
-not
-path
"./docs/*"
\
| xargs pylint
\
--errors-only
\
--disable
=
print-statement,
unsubscriptable-object,not-an-iterable,no-member
--disable
=
unsubscriptable-object,not-an-iterable,no-member
echo
'Passes pylint check'
This diff is collapsed.
Click to expand it.
mhcflurry/parallelism.py
+
2
−
2
View file @
a79b7ed9
from
multiprocessing
import
Pool
,
Queue
,
cpu_count
from
six.moves
.queue
import
Empty
from
six.moves
import
queue
from
multiprocessing.util
import
Finalize
from
pprint
import
pprint
...
...
@@ -86,7 +86,7 @@ def worker_init_entry_point(
if
arg_queue
:
try
:
kwargs
=
arg_queue
.
get
(
block
=
False
)
except
Empty
:
except
queue
.
Empty
:
print
(
"
Argument queue empty. Using round robin arg queue.
"
)
kwargs
=
backup_arg_queue
.
get
(
block
=
True
)
backup_arg_queue
.
put
(
kwargs
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment