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 1ff8812 commit 2e4a1a9
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 @@ -403,7 +403,7 @@ def plot_initGBxs_dropletmasses(
gbxidxs = np.unique(attrs.sdgbxindex)
savename = binpath + "initallGBxs_dropletmasses" + savelabel + ".png"
else:
gbxidxs = gbxs2plt
gbxidxs = [int(g) for g in gbxs2plt]
savename = binpath + "initGBxs_dropletmasses" + savelabel + ".png"

fig, axs, lines = plot_massdistribs(
Expand Down

0 comments on commit 2e4a1a9

Please sign in to comment.