Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
Co-authored-by: Jaladh Singhal <[email protected]>
  • Loading branch information
sarthak-dv and jaladh-singhal authored Jul 13, 2024
1 parent 848575f commit a83d4a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tardis/visualization/tools/liv_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def _prepare_plot_data(
if num_bins:
if num_bins < 1:
raise ValueError("Number of bins must be positive")
elif len(bin_edges) - 1 < num_bins:
elif num_bins > len(bin_edges) - 1:
logger.warn(
"Number of bins must be less than or equal to number of shells. Plotting with number of bins equals to number of shells."
)
Expand Down

0 comments on commit a83d4a6

Please sign in to comment.