From 1fd4987dd5d9c295f5a69671e037048ce17f1b11 Mon Sep 17 00:00:00 2001 From: Atharva Arya Date: Mon, 29 Jul 2024 20:17:44 +0530 Subject: [PATCH] Change logger.warn to logger.warning --- tardis/visualization/tools/liv_plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tardis/visualization/tools/liv_plot.py b/tardis/visualization/tools/liv_plot.py index eef3a4e0cf4..9d8d8f0e8e4 100644 --- a/tardis/visualization/tools/liv_plot.py +++ b/tardis/visualization/tools/liv_plot.py @@ -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( "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