Skip to content

Commit

Permalink
provide depth point indices in warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshields committed Oct 14, 2024
1 parent 97acfad commit 39d13e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stardis/radiation_field/opacities/opacities_solvers/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def sigma_file(tracing_lambdas, temperatures, fpath, opacity_source=None):
) # Scaling from Stancil 1994 table
if np.any(sigmas == 0):
logger.warning(
"Outside of interpolation range for H2+ BF cross-sections in some part of the atmosphere. Assuming 0 opacity from H2+ BF for these points."
f"Outside of interpolation range for H2+ BF cross-sections at depth points {np.unique(np.where(sigmas == 0)[0])}. Assuming 0 opacity from H-FF for these depth points."
)
elif (
opacity_source == "Hminus_ff"
Expand Down Expand Up @@ -87,7 +87,7 @@ def sigma_file(tracing_lambdas, temperatures, fpath, opacity_source=None):
)
if np.any(sigmas == 0):
logger.warning(
"Outside of interpolation range for H- FF cross-sections in some part of the atmosphere. Assuming 0 opacity from H-FF for these points."
f"Outside of interpolation range for H- FF cross-sections at depth points {np.unique(np.where(sigmas == 0)[0])}. Assuming 0 opacity from H-FF for these depth points."
)

elif (
Expand Down

0 comments on commit 39d13e8

Please sign in to comment.