Skip to content

Commit

Permalink
Fix deprecated series index
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHls committed Nov 1, 2023
1 parent 7a73862 commit b98d02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tardis/plasma/properties/nlte_rate_equation_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def prepare_first_guess(
"""
first_guess = pd.Series(0.0, index=rate_matrix_index)
for atomic_number in atomic_numbers:
first_guess.loc[(atomic_number, 1)][0] = number_density.loc[
first_guess.loc[(atomic_number, 1)].iloc[0] = number_density.loc[
atomic_number
]
# TODO: After the first iteration, the new guess can be the old solution.
Expand Down

0 comments on commit b98d02b

Please sign in to comment.