44
55
66def test_read_halflife_value ():
7- parser = nbp .NubaseParser (pathlib .Path ("." ), 2003 )
7+ parser = nbp .NUBASEParser (pathlib .Path ("." ), 2003 )
88
99 line_01 = "232 0950 232Am 43400# 300# 1.31 m 0.04 91 B+=?;A=2#;B+SF=0.069 10"
1010 assert parser ._read_halflife_value (line_01 ) == 1.31
@@ -14,7 +14,7 @@ def test_read_halflife_value():
1414
1515
1616def test_read_halflife_error ():
17- parser = nbp .NubaseParser (pathlib .Path ("." ), 2003 )
17+ parser = nbp .NUBASEParser (pathlib .Path ("." ), 2003 )
1818
1919 line_01 = "113 0500 113Sn -88333 4 115.09 d 0.03 1/2+ 00 B+=100"
2020 assert parser ._read_halflife_error (line_01 ) == 0.03
@@ -24,14 +24,14 @@ def test_read_halflife_error():
2424
2525
2626def test_no_decay_mode ():
27- parser = nbp .NubaseParser (pathlib .Path ("." ), 2012 )
27+ parser = nbp .NUBASEParser (pathlib .Path ("." ), 2012 )
2828
2929 no_decay = "044 0212 44Scn -37669.9 1.8 146.224 0.022 50.4 us 0.7 0- 99"
3030 assert parser ._read_decay_string (no_decay ) == "UNKNOWN"
3131
3232
3333def test_readable_line ():
34- parser = nbp .NubaseParser (pathlib .Path ("." ), 2003 )
34+ parser = nbp .NUBASEParser (pathlib .Path ("." ), 2003 )
3535
3636 bad_line01 = "003 0030 3Li 28670# 2000# RN p-unst 98 p ?"
3737 bad_line02 = "130 0556 130Csx -86873 17 27 15 R=.2~~~.1 fsmix"
@@ -47,7 +47,7 @@ def test_readable_line():
4747
4848
4949def test_read_line ():
50- parser = nbp .NubaseParser (pathlib .Path ("." ), 2003 )
50+ parser = nbp .NUBASEParser (pathlib .Path ("." ), 2003 )
5151
5252 iso_line = "183 0791 183Aum -30114 10 73.3 0.4 >1 us (1/2)+ 99 IT=100"
5353 assert parser ._read_line (iso_line ) == dict ()
@@ -59,8 +59,8 @@ def test_read_line():
5959 assert d ['Z' ] == 29
6060 assert d ['N' ] == 28
6161 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
6464 assert d ['HalfLifeValue' ] == 196.3
6565 assert d ['HalfLifeUnit' ] == "ms"
6666 assert d ['HalfLifeError' ] == 0.7
@@ -75,8 +75,8 @@ def test_read_line():
7575 assert d ['Z' ] == 53
7676 assert d ['N' ] == 57
7777 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
8080 assert d ['HalfLifeValue' ] == 650
8181 assert d ['HalfLifeUnit' ] == "ms"
8282 assert d ['HalfLifeError' ] == 20
@@ -85,7 +85,7 @@ def test_read_line():
8585 assert d ['Decay' ] == "B+"
8686
8787 # 2020 table has a new format
88- parser = nbp .NubaseParser (pathlib .Path ("." ), 2020 )
88+ parser = nbp .NUBASEParser (pathlib .Path ("." ), 2020 )
8989
9090 # Use the same isotope as previously tested
9191 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():
9595 assert d ['Z' ] == 29
9696 assert d ['N' ] == 28
9797 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
100100 assert d ['HalfLifeValue' ] == 196.4
101101 assert d ['HalfLifeUnit' ] == "ms"
102102 assert d ['HalfLifeError' ] == 0.7
0 commit comments