Skip to content

Commit

Permalink
fix: value error is index error
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed May 7, 2024
1 parent b673d15 commit eefa82f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/exampleplotting/plotssrc/pltsds.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def plot_randomsample_superdrops(time, sddata, totnsupers, nsample, savename="")
sddata, attr, ids=ids2plot
)
axs[0, a].plot(time.mins, data, linewidth=0.8)
except ValueError:
except IndexError:
print("WARNING: didn't plot " + attr)

mks = MarkerStyle("o", fillstyle="full")
Expand All @@ -99,7 +99,7 @@ def plot_randomsample_superdrops(time, sddata, totnsupers, nsample, savename="")
)
data = data / 1000 # [km]
axs[1, a].plot(time.mins, data, linestyle="", marker=mks, markersize=0.2)
except ValueError:
except IndexError:
print("WARNING: didn't plot " + coord)

axs[0, 0].set_yscale("log")
Expand Down

0 comments on commit eefa82f

Please sign in to comment.