Skip to content

Commit 6599899

Browse files
authored
fix n_procs bug and micro version bump (#39)
1 parent f87cb4e commit 6599899

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

hilbertcurve/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Metadata for this package."""
22

33
__package_name__ = "hilbertcurve"
4-
__version__ = "2.0.4"
4+
__version__ = "2.0.5"

hilbertcurve/hilbertcurve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(
3232
n: Union[int, float],
3333
n_procs: int=0,
3434
) -> None:
35-
35+
3636
"""Initialize a hilbert curve with,
3737
3838
Args:
@@ -76,7 +76,7 @@ def __init__(
7676
elif n_procs == 0:
7777
self.n_procs = 0
7878
elif n_procs > 0:
79-
self.n_procs = self.n_procs
79+
self.n_procs = n_procs
8080
else:
8181
raise ValueError(
8282
'n_procs must be >= -1 (got n_procs={} as input)'.format(n_procs))

0 commit comments

Comments
 (0)