Skip to content

Commit

Permalink
Handle ionpot_ev > Emin
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Nov 6, 2024
1 parent f121a5a commit d347457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynonthermal/spencerfano.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ def add_ionisation(self, Z, ion_stage, n_ion):
dfcollion_thision = self.dfcollion.query("Z == @Z and ion_stage == @ion_stage", inplace=False)

for index, shell in dfcollion_thision.iterrows():
assert shell.ionpot_ev >= self.engrid[0]
self._add_ionisation_shell(n_ion, shell)
if shell.ionpot_ev >= self.engrid[0]:
self._add_ionisation_shell(n_ion, shell)

def calculate_n_e(self):
# number density of free electrons [cm-^3]
Expand Down

0 comments on commit d347457

Please sign in to comment.