From 6599899ee2156fe7833b15447325f330cf5b8113 Mon Sep 17 00:00:00 2001 From: Gabriel Altay Date: Mon, 29 Mar 2021 16:40:38 -0400 Subject: [PATCH] fix n_procs bug and micro version bump (#39) --- hilbertcurve/__init__.py | 2 +- hilbertcurve/hilbertcurve.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hilbertcurve/__init__.py b/hilbertcurve/__init__.py index f6f3586..3563f05 100644 --- a/hilbertcurve/__init__.py +++ b/hilbertcurve/__init__.py @@ -1,4 +1,4 @@ """Metadata for this package.""" __package_name__ = "hilbertcurve" -__version__ = "2.0.4" +__version__ = "2.0.5" diff --git a/hilbertcurve/hilbertcurve.py b/hilbertcurve/hilbertcurve.py index e9b22d9..898bc34 100644 --- a/hilbertcurve/hilbertcurve.py +++ b/hilbertcurve/hilbertcurve.py @@ -32,7 +32,7 @@ def __init__( n: Union[int, float], n_procs: int=0, ) -> None: - + """Initialize a hilbert curve with, Args: @@ -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))