Skip to content

Commit

Permalink
fix n_procs bug and micro version bump (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
galtay authored Mar 29, 2021
1 parent f87cb4e commit 6599899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hilbertcurve/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Metadata for this package."""

__package_name__ = "hilbertcurve"
__version__ = "2.0.4"
__version__ = "2.0.5"
4 changes: 2 additions & 2 deletions hilbertcurve/hilbertcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(
n: Union[int, float],
n_procs: int=0,
) -> None:

"""Initialize a hilbert curve with,
Args:
Expand Down Expand Up @@ -76,7 +76,7 @@ def __init__(
elif n_procs == 0:
self.n_procs = 0
elif n_procs > 0:
self.n_procs = self.n_procs
self.n_procs = n_procs
else:
raise ValueError(
'n_procs must be >= -1 (got n_procs={} as input)'.format(n_procs))
Expand Down

0 comments on commit 6599899

Please sign in to comment.