File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ def test_read_halflife_value():
6
6
parser = nbp .NubaseParser (pathlib .Path ("." ), 2003 )
7
7
8
8
line_01 = "232 0950 232Am 43400# 300# 1.31 m 0.04 91 B+=?;A=2#;B+SF=0.069 10"
9
-
10
9
assert parser ._read_halflife_value (line_01 ) == 1.31
11
10
12
11
line_02 = "052 0290 52Cu -2630# 260# 3+# 00 p ?"
@@ -23,6 +22,13 @@ def test_read_halflife_error():
23
22
assert not parser ._read_halflife_error (line_02 )
24
23
25
24
25
+ def test_no_decay_mode ():
26
+ parser = nbp .NubaseParser (pathlib .Path ("." ), 2012 )
27
+
28
+ no_decay = "044 0212 44Scn -37669.9 1.8 146.224 0.022 50.4 us 0.7 0- 99"
29
+ assert parser ._read_decay_string (no_decay ) is "UNKNOWN"
30
+
31
+
26
32
def test_readable_line ():
27
33
parser = nbp .NubaseParser (pathlib .Path ("." ), 2003 )
28
34
@@ -83,6 +89,7 @@ def test_read_line():
83
89
# Use the same isotope as previously tested
84
90
gs_line = "057 0290 57Cu -47309.0 0.5 196.4 ms 0.7 3/2-* 98 1976 B+=100"
85
91
d = parser ._read_line (gs_line )
92
+
86
93
assert d ['A' ] == 57
87
94
assert d ['Z' ] == 29
88
95
assert d ['N' ] == 28
You can’t perform that action at this time.
0 commit comments