From e64ea66f98b301a4d20b0d94792e91db675fa048 Mon Sep 17 00:00:00 2001 From: Atharva Arya Date: Mon, 11 Nov 2024 22:41:02 +0530 Subject: [PATCH] Remove content --- tardis/simulation/base.py | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/tardis/simulation/base.py b/tardis/simulation/base.py index 3e8822c5de0..d6e68625566 100644 --- a/tardis/simulation/base.py +++ b/tardis/simulation/base.py @@ -625,33 +625,15 @@ def log_plasma_state( plasma_state_log["next_w"] = next_dilution_factor plasma_state_log.columns.name = "Shell No." - if is_notebook(): - logger.info("\n\tPlasma stratification:") - - # Displaying the DataFrame only when the logging level is NOTSET, DEBUG or INFO - if logger.level <= logging.INFO: - if not logger.filters: - display( - plasma_state_log.iloc[::log_sampling].style.format( - "{:.3g}" - ) - ) - elif logger.filters[0].log_level == 20: - display( - plasma_state_log.iloc[::log_sampling].style.format( - "{:.3g}" - ) - ) - else: - output_df = "" - plasma_output = plasma_state_log.iloc[::log_sampling].to_string( - float_format=lambda x: f"{x:.3g}", - justify="center", - ) - for value in plasma_output.split("\n"): - output_df = output_df + f"\t{value}\n" - logger.info("\n\tPlasma stratification:") - logger.info(f"\n{output_df}") + output_df = "" + plasma_output = plasma_state_log.iloc[::log_sampling].to_string( + float_format=lambda x: f"{x:.3g}", + justify="center", + ) + for value in plasma_output.split("\n"): + output_df = output_df + f"\t{value}\n" + logger.info("\n\tPlasma stratification:") + logger.info(f"\n{output_df}") logger.info( f"\n\tCurrent t_inner = {t_inner:.3f}\n\tExpected t_inner for next iteration = {next_t_inner:.3f}\n"