Skip to content

Commit

Permalink
changed groupby from 0, 1 to atomic number, ion number
Browse files Browse the repository at this point in the history
  • Loading branch information
sonachitchyan committed Nov 9, 2022
1 parent 420f902 commit 0307dba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tardis/plasma/properties/nlte_rate_equation_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def calculate(
)

raise NotImplementedError("NLTE ionization hasn't been fully implemented yet!")

@staticmethod
def calculate_rate_matrix(
phi_shell,
Expand Down Expand Up @@ -399,7 +399,7 @@ def prepare_ion_recomb_coefficients_nlte_ion(
level_population_fraction.loc[coll_ion_coeff.index]
* coll_ion_coeff
)
.groupby(level=(0, 1))
.groupby(level=("atomic_number", "ion_number"))
.sum()
)
total_coll_recomb_coefficients = (
Expand Down

0 comments on commit 0307dba

Please sign in to comment.