Skip to content

Commit

Permalink
fix list popping
Browse files Browse the repository at this point in the history
SamG-01 committed Oct 10, 2024
1 parent 239735d commit b231339
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pynucastro/nucdata/halflife_table.py
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ def _read_table(self) -> None:

for line in file:

A, Z, tau = line.strip().split()
A, Z, tau = line.strip().split()[:3]
#print(data_list)

if tau != "stable":
2 changes: 1 addition & 1 deletion pynucastro/nucdata/mass_table.py
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ def _read_table(self) -> None:
f.readline()

for line in f:
A, Z, dm = line.strip().split()
A, Z, dm = line.strip().split()[:3]
self._mass_diff[int(A), int(Z)] = float(dm)

def get_mass_diff(self, a: int, z: int) -> float:
2 changes: 1 addition & 1 deletion pynucastro/nucdata/spin_table.py
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ def _read_table(self) -> None:

for line in f:

A, Z, _, spin_states, experimental = line.strip().split()
A, Z, _, spin_states, experimental = line.strip().split()[:4]
A, Z, spin_states = int(A), int(Z), int(spin_states)

if self.reliable:

0 comments on commit b231339

Please sign in to comment.