Skip to content

Commit

Permalink
Cluster: explicitly cast total to float
Browse files Browse the repository at this point in the history
Recent numpy/ pandas versions require this
  • Loading branch information
clbarnes committed Jan 5, 2024
1 parent 3dbd46d commit 547ab87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymaid/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def _calc_connectivity_matching_index(neuronA, neuronB, connectivity,

if vertex_score:
# We only need the columns for neuronA and neuronB
this_cn = total[[neuronA, neuronB]]
this_cn = total[[neuronA, neuronB]].astype(float)

# Get min and max between both neurons
this_max = np.max(this_cn, axis=1)
Expand Down

0 comments on commit 547ab87

Please sign in to comment.