Skip to content

Commit

Permalink
Update spatial_heatmap.py
Browse files Browse the repository at this point in the history
update value_counts syntax 

as reported in #348
  • Loading branch information
wdecoster authored Nov 17, 2023
1 parent 97a6ea0 commit e3a0f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nanoplotter/spatial_heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def spatial_heatmap(array, path, colormap, settings, title=None):
title="Number of reads generated per channel")

layout = make_layout(maxval=np.amax(array))
valueCounts = pd.value_counts(pd.Series(array))
valueCounts = pd.Series(array).value_counts()

for entry in valueCounts.keys():
layout.template[np.where(layout.structure == entry)
Expand Down

0 comments on commit e3a0f31

Please sign in to comment.