Skip to content

Commit

Permalink
Revert .values change
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfullard authored Sep 19, 2022
1 parent b84cc84 commit eb8a42c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tardis/plasma/properties/nlte.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def calculate(
helium_population.loc[0, 0] = 0.0
# He II excited states
he_two_population = level_boltzmann_factor.loc[2, 1].mul(
(g.loc[2,1,0].values ** (-1.0))
(float(g.loc[2,1,0]) ** (-1.0))
)
helium_population.loc[1].update(he_two_population)
# He II ground state
Expand Down Expand Up @@ -117,7 +117,7 @@ def calculate_helium_one(
"""
return (
level_boltzmann_factor.loc[2, 0]
* (1.0 / (g.loc[2,1,0].values * 2))
* (1.0 / (float(g.loc[2,1,0]) * 2))
* (1 / g_electron)
* (1 / (w**2.0))
* np.exp(ionization_data.loc[2, 1] * beta_rad)
Expand Down

0 comments on commit eb8a42c

Please sign in to comment.