Skip to content

Commit

Permalink
fix: ensure gbxidxs for plotting are ints
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed Aug 17, 2024
1 parent f1d9d9f commit 1ff8812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pySD/initsuperdropsbinary_src/read_initsuperdrops.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def plot_initGBxs_attrdistribs(
gbxidxs = np.unique(attrs.sdgbxindex)
savename = binpath + "initallGBxs_distribs" + savelabel + ".png"
else:
gbxidxs = gbxs2plt
gbxidxs = [int(g) for g in gbxs2plt]
savename = binpath + "initGBxs_distribs" + savelabel + ".png"

fig, axs, lines = plot_initdistribs(attrs, gbxvols, gbxidxs)
Expand Down

0 comments on commit 1ff8812

Please sign in to comment.