Skip to content

Commit

Permalink
changed warning to logging.warn
Browse files Browse the repository at this point in the history
  • Loading branch information
DeerWhale committed Mar 8, 2024
1 parent d5331a2 commit 21a2057
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tardis/model/parse_input.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import logging
import os
import warnings

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -680,7 +679,7 @@ def parse_csvy_radiation_field_state(
)

if np.any(t_radiative < 1000 * u.K):
warnings.warn(
logging.warn(
"Radiative temperature is too low in some of the shells, temperatures below 1000K "
f"(e.g., T_rad = {t_radiative[np.argmin(t_radiative)]} in shell {np.argmin(t_radiative)} in your model) "
"are not accurately handled by Tardis.",
Expand Down

0 comments on commit 21a2057

Please sign in to comment.