Skip to content

Commit

Permalink
force int with loc to avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshields committed Nov 14, 2024
1 parent ce24028 commit d3f4769
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stardis/radiation_field/opacities/opacities_solvers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ def calc_alpha_line_at_nu(
.to_numpy()
)

lines_sorted_in_range["ion_number"] = lines_sorted_in_range["ion_number"].astype(
lines_sorted_in_range.loc[:, "ion_number"] = lines_sorted_in_range[
"ion_number"
].astype(
int
) # weird bug cropped up with ion_number being an object instead of an int

Expand Down

0 comments on commit d3f4769

Please sign in to comment.