From eb8a42c7d7dfbad5362f84bb45d8a7cd077ac778 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 19 Sep 2022 10:33:18 -0400 Subject: [PATCH] Revert .values change --- tardis/plasma/properties/nlte.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tardis/plasma/properties/nlte.py b/tardis/plasma/properties/nlte.py index 6a118a44efd..72d5734e99e 100644 --- a/tardis/plasma/properties/nlte.py +++ b/tardis/plasma/properties/nlte.py @@ -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 @@ -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)