Skip to content

Commit

Permalink
bugfix in reduced_network
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterel committed Oct 9, 2024
1 parent cea0571 commit 92ae734
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion perconet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@

__all__ = ["PeriodicNetwork", "LoopFinder"]

__version__ = "0.2.3"
__version__ = "0.2.4"
2 changes: 1 addition & 1 deletion perconet/periodicnetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 92ae734

Please sign in to comment.