@@ -83,7 +83,7 @@ def _read_decay_string(self, line: str) -> str:
83
83
def _read_line (self , line : str ) -> dict :
84
84
"""Read a line of the file."""
85
85
# Ignore isomers for the moment
86
- state = self ._read_as_int (line , self .START_STATE , self .END_STATE )
86
+ state = self ._read_as_int (line , self .START_STATE , self .END_STATE )
87
87
if state is None or state > 0 :
88
88
return dict ()
89
89
@@ -92,25 +92,25 @@ def _read_line(self, line: str) -> dict:
92
92
line = line .replace ("#" , " " )
93
93
94
94
data = {
95
- "Experimental" : exp ,
95
+ "Experimental" : exp ,
96
96
"TableYear" : self .year ,
97
- "A" : self ._read_as_int (line , self .START_A , self .END_A ),
98
- "Z" : self ._read_as_int (line , self .START_Z , self .END_Z ),
99
- "NubaseMassExcess" : self ._read_as_float (line , self .START_ME , self .END_ME ),
100
- "NubaseMassExcessError" : self ._read_as_float (line , self .START_DME , self .END_DME ),
97
+ "A" : self ._read_as_int (line , self .START_A , self .END_A ),
98
+ "Z" : self ._read_as_int (line , self .START_Z , self .END_Z ),
99
+ "NubaseMassExcess" : self ._read_as_float (line , self .START_ME , self .END_ME ),
100
+ "NubaseMassExcessError" : self ._read_as_float (line , self .START_DME , self .END_DME ),
101
101
# "LevelEnergy" : self._read_as_float(,
102
102
# line, self.START_ISOMER, self.END_ISOMER
103
103
# )
104
104
# "LevelEnergyError" : self._read_as_float(,
105
105
# line, self.START_DISOMER, self.END_DISOMER
106
106
# )
107
- "LevelSpin" : self ._read_spin (line ),
108
- "DiscoveryYear" : (
107
+ "LevelSpin" : self ._read_spin (line ),
108
+ "DiscoveryYear" : (
109
109
self ._read_as_int (line , self .START_YEAR , self .END_YEAR , default = 1900 )
110
110
if self .year != 2003
111
111
else 1900
112
112
),
113
- "Decay" : self ._read_decay_string (line ),
113
+ "Decay" : self ._read_decay_string (line ),
114
114
}
115
115
116
116
data ["HalfLifeValue" ], data ["HalfLifeUnit" ], data ["HalfLifeError" ] = self ._read_all_halflife_data (line )
0 commit comments