Skip to content

Commit

Permalink
Change logger.warn to logger.warning
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Aug 5, 2024
1 parent e1aa887 commit 1fd4987
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 @@ -310,7 +310,7 @@ def _prepare_plot_data(
if num_bins < 1:
raise ValueError("Number of bins must be positive")
elif num_bins > len(bin_edges) - 1:
logger.warn(
logger.warning(

Check warning on line 313 in tardis/visualization/tools/liv_plot.py

View check run for this annotation

Codecov / codecov/patch

tardis/visualization/tools/liv_plot.py#L313

Added line #L313 was not covered by tests
"Number of bins must be less than or equal to number of shells. Plotting with number of bins equals to number of shells."
)
new_bin_edges = bin_edges
Expand Down

0 comments on commit 1fd4987

Please sign in to comment.