4
4
5
5
6
6
def test_read_halflife_value ():
7
- parser = nbp .NubaseParser (pathlib .Path ("." ), 2003 )
7
+ parser = nbp .NUBASEParser (pathlib .Path ("." ), 2003 )
8
8
9
9
line_01 = "232 0950 232Am 43400# 300# 1.31 m 0.04 91 B+=?;A=2#;B+SF=0.069 10"
10
10
assert parser ._read_halflife_value (line_01 ) == 1.31
@@ -14,7 +14,7 @@ def test_read_halflife_value():
14
14
15
15
16
16
def test_read_halflife_error ():
17
- parser = nbp .NubaseParser (pathlib .Path ("." ), 2003 )
17
+ parser = nbp .NUBASEParser (pathlib .Path ("." ), 2003 )
18
18
19
19
line_01 = "113 0500 113Sn -88333 4 115.09 d 0.03 1/2+ 00 B+=100"
20
20
assert parser ._read_halflife_error (line_01 ) == 0.03
@@ -24,14 +24,14 @@ def test_read_halflife_error():
24
24
25
25
26
26
def test_no_decay_mode ():
27
- parser = nbp .NubaseParser (pathlib .Path ("." ), 2012 )
27
+ parser = nbp .NUBASEParser (pathlib .Path ("." ), 2012 )
28
28
29
29
no_decay = "044 0212 44Scn -37669.9 1.8 146.224 0.022 50.4 us 0.7 0- 99"
30
30
assert parser ._read_decay_string (no_decay ) == "UNKNOWN"
31
31
32
32
33
33
def test_readable_line ():
34
- parser = nbp .NubaseParser (pathlib .Path ("." ), 2003 )
34
+ parser = nbp .NUBASEParser (pathlib .Path ("." ), 2003 )
35
35
36
36
bad_line01 = "003 0030 3Li 28670# 2000# RN p-unst 98 p ?"
37
37
bad_line02 = "130 0556 130Csx -86873 17 27 15 R=.2~~~.1 fsmix"
@@ -47,7 +47,7 @@ def test_readable_line():
47
47
48
48
49
49
def test_read_line ():
50
- parser = nbp .NubaseParser (pathlib .Path ("." ), 2003 )
50
+ parser = nbp .NUBASEParser (pathlib .Path ("." ), 2003 )
51
51
52
52
iso_line = "183 0791 183Aum -30114 10 73.3 0.4 >1 us (1/2)+ 99 IT=100"
53
53
assert parser ._read_line (iso_line ) == dict ()
@@ -59,8 +59,8 @@ def test_read_line():
59
59
assert d ['Z' ] == 29
60
60
assert d ['N' ] == 28
61
61
assert d ['Experimental' ] is True
62
- assert d ['NubaseMassExcess ' ] == - 47310.0
63
- assert d ['NubaseMassExcessError ' ] == 16.0
62
+ assert d ['NUBASEMassExcess ' ] == - 47310.0
63
+ assert d ['NUBASEMassExcessError ' ] == 16.0
64
64
assert d ['HalfLifeValue' ] == 196.3
65
65
assert d ['HalfLifeUnit' ] == "ms"
66
66
assert d ['HalfLifeError' ] == 0.7
@@ -75,8 +75,8 @@ def test_read_line():
75
75
assert d ['Z' ] == 53
76
76
assert d ['N' ] == 57
77
77
assert d ['Experimental' ] is False
78
- assert d ['NubaseMassExcess ' ] == - 60320
79
- assert d ['NubaseMassExcessError ' ] == 310
78
+ assert d ['NUBASEMassExcess ' ] == - 60320
79
+ assert d ['NUBASEMassExcessError ' ] == 310
80
80
assert d ['HalfLifeValue' ] == 650
81
81
assert d ['HalfLifeUnit' ] == "ms"
82
82
assert d ['HalfLifeError' ] == 20
@@ -85,7 +85,7 @@ def test_read_line():
85
85
assert d ['Decay' ] == "B+"
86
86
87
87
# 2020 table has a new format
88
- parser = nbp .NubaseParser (pathlib .Path ("." ), 2020 )
88
+ parser = nbp .NUBASEParser (pathlib .Path ("." ), 2020 )
89
89
90
90
# Use the same isotope as previously tested
91
91
gs_line = "057 0290 57Cu -47309.0 0.5 196.4 ms 0.7 3/2-* 98 1976 B+=100"
@@ -95,8 +95,8 @@ def test_read_line():
95
95
assert d ['Z' ] == 29
96
96
assert d ['N' ] == 28
97
97
assert d ['Experimental' ] is True
98
- assert d ['NubaseMassExcess ' ] == - 47309.0
99
- assert d ['NubaseMassExcessError ' ] == 0.5
98
+ assert d ['NUBASEMassExcess ' ] == - 47309.0
99
+ assert d ['NUBASEMassExcessError ' ] == 0.5
100
100
assert d ['HalfLifeValue' ] == 196.4
101
101
assert d ['HalfLifeUnit' ] == "ms"
102
102
assert d ['HalfLifeError' ] == 0.7
0 commit comments