Skip to content

Commit

Permalink
Update readtanakajpltdata.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Dec 18, 2024
1 parent a53710b commit db8f0c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions artisatomic/readtanakajpltdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class TransitionTuple(t.NamedTuple):
lowerlevel: int
upperlevel: int
A: float
coll_str: float


def extend_ion_list(ion_handlers):
Expand Down Expand Up @@ -120,8 +119,7 @@ def read_levels_and_transitions(atomic_number, ion_stage, flog):

for row in dftransitions.itertuples(index=False):
A = float(row.g_u_times_A) / energy_levels[row.num_u].g
coll_str = -1 if (energy_levels[row.num_u].parity != energy_levels[row.num_l].parity) else -2
transitions.append(TransitionTuple(lowerlevel=row.num_l, upperlevel=row.num_u, A=A, coll_str=coll_str))
transitions.append(TransitionTuple(lowerlevel=row.num_l, upperlevel=row.num_u, A=A))

transition_count_of_level_name[energy_levels[row.num_u].levelname] += 1
transition_count_of_level_name[energy_levels[row.num_l].levelname] += 1
Expand Down

0 comments on commit db8f0c2

Please sign in to comment.