diff --git a/perconet/__init__.py b/perconet/__init__.py index 4b79ada..31828de 100644 --- a/perconet/__init__.py +++ b/perconet/__init__.py @@ -30,4 +30,4 @@ __all__ = ["PeriodicNetwork", "LoopFinder"] -__version__ = "0.2.3" +__version__ = "0.2.4" diff --git a/perconet/periodicnetwork.py b/perconet/periodicnetwork.py index fa8f8b4..eaeaee5 100644 --- a/perconet/periodicnetwork.py +++ b/perconet/periodicnetwork.py @@ -329,7 +329,7 @@ def nodeid_to_clusterid(self, clusterlabels): # using the addition operator edgedata = connected_labels + self.simple_boundary_crossing[edge] reduced_network.append(edgedata) - reduced_network = np.asarray(reduced_network) + reduced_network = np.asarray(reduced_network, dtype=int) # The main reason to collect the edge data in a 5-column numpy array is # that we can now use np.unique to get rid of duplicate edges reduced_network = np.unique(reduced_network, axis=0) diff --git a/pyproject.toml b/pyproject.toml index 1bd6c78..efa1d08 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "perconet" -version = "0.2.3" +version = "0.2.4" description = "Analyze percolation properties of periodic networks" authors = ["Chiara Raffaelli, Wouter G. Ellenbroek"] homepage = "https://github.com/wouterel/perconet"