Skip to content

Commit

Permalink
fill value -> 0 for LinearNDInterpolator
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshields committed Oct 14, 2024
1 parent b921279 commit 7dbd18c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stardis/radiation_field/opacities/opacities_solvers/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def sigma_file(tracing_lambdas, temperatures, fpath, opacity_source=None):
linear_interp_h2plus_bf = LinearNDInterpolator(
np.vstack([file_waves_mesh.ravel(), file_temps_mesh.ravel()]).T,
file_cross_sections.flatten(),
fill_value=0,
)
lambdas, temps = np.meshgrid(tracing_lambdas, temperatures)
sigmas = (
Expand All @@ -68,6 +69,7 @@ def sigma_file(tracing_lambdas, temperatures, fpath, opacity_source=None):
linear_interp_hminus_ff = LinearNDInterpolator(
np.vstack([file_waves_mesh.ravel(), file_thetas_mesh.ravel()]).T,
file_values.flatten(),
fill_value=0,
)
lambdas, thetas = np.meshgrid(tracing_lambdas, 5040 / temperatures)
sigmas = (
Expand Down

0 comments on commit 7dbd18c

Please sign in to comment.