Skip to content

Commit

Permalink
Black plasma
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Oct 8, 2024
1 parent a9e7a4b commit c2834d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tardis/plasma/properties/helium_nlte.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@ def calculate(
# Reading in populations from files
helium_population = level_boltzmann_factor.loc[2].copy()
for zone, _ in enumerate(electron_densities):
with open(
f"He_NLTE_Files/discradfield{zone}.txt"
) as read_file:
with open(f"He_NLTE_Files/discradfield{zone}.txt") as read_file:
for level in range(35):

Check warning on line 236 in tardis/plasma/properties/helium_nlte.py

View check run for this annotation

Codecov / codecov/patch

tardis/plasma/properties/helium_nlte.py#L235-L236

Added lines #L235 - L236 were not covered by tests
level_population = read_file.readline()
level_population = float(level_population)
Expand Down
4 changes: 1 addition & 3 deletions tardis/plasma/properties/partition_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,4 @@ class ThermalLTEPartitionFunction(PartitionFunction):
latex_name = (r"Z_{i,j}(T_\mathrm{e}",)

def calculate(self, thermal_lte_level_boltzmann_factor):
return super().calculate(
thermal_lte_level_boltzmann_factor
)
return super().calculate(thermal_lte_level_boltzmann_factor)

0 comments on commit c2834d2

Please sign in to comment.