Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from logger.warn to logger.warning and other corrections #2756

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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
Loading