File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 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():
66 parser = nbp .NubaseParser (pathlib .Path ("." ), 2003 )
77
88 line_01 = "232 0950 232Am 43400# 300# 1.31 m 0.04 91 B+=?;A=2#;B+SF=0.069 10"
9-
109 assert parser ._read_halflife_value (line_01 ) == 1.31
1110
1211 line_02 = "052 0290 52Cu -2630# 260# 3+# 00 p ?"
@@ -23,6 +22,13 @@ def test_read_halflife_error():
2322 assert not parser ._read_halflife_error (line_02 )
2423
2524
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+
2632def test_readable_line ():
2733 parser = nbp .NubaseParser (pathlib .Path ("." ), 2003 )
2834
@@ -83,6 +89,7 @@ def test_read_line():
8389 # Use the same isotope as previously tested
8490 gs_line = "057 0290 57Cu -47309.0 0.5 196.4 ms 0.7 3/2-* 98 1976 B+=100"
8591 d = parser ._read_line (gs_line )
92+
8693 assert d ['A' ] == 57
8794 assert d ['Z' ] == 29
8895 assert d ['N' ] == 28
You can’t perform that action at this time.
0 commit comments