nucleardatapy 1.0.0__py3-none-any.whl → 1.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. nucleardatapy/astro/setup_mr.py +115 -33
  2. nucleardatapy/create_folder.py +2 -2
  3. nucleardatapy/crust/setup_crust.py +5 -5
  4. nucleardatapy/data/astro/HESS/J1731-347.dat +4 -0
  5. nucleardatapy/data/astro/NICER/J0030+0451.dat +6 -6
  6. nucleardatapy/data/astro/NICER/J0437-4715.dat +4 -3
  7. nucleardatapy/data/astro/NICER/J0614-3329.dat +4 -0
  8. nucleardatapy/data/astro/NICER/J0740+6620.dat +5 -5
  9. nucleardatapy/data/hnuclei/1991-2L-Yamamoto.csv +6 -0
  10. nucleardatapy/data/hnuclei/2013-2L-Ahn.csv +1 -1
  11. nucleardatapy/data/hnuclei/2019-2L-Ekawa.csv +7 -0
  12. nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-414-E2A.dat +21 -0
  13. nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-414-TD.dat +22 -0
  14. nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-450-E2A.dat +20 -0
  15. nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-450-TD.dat +22 -0
  16. nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-500-E2A.dat +23 -0
  17. nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-500-TD.dat +22 -0
  18. nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-414-E2A.dat +15 -0
  19. nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-414-TD.dat +21 -0
  20. nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-450-E2A.dat +15 -0
  21. nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-450-TD.dat +21 -0
  22. nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-500-E2A.dat +20 -0
  23. nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-500-TD.dat +20 -0
  24. nucleardatapy/data/matter/micro/2024-ABI-NM-DeltaNNLO450.dat +28 -0
  25. nucleardatapy/data/matter/micro/2024-ABI-NM-DeltaNNLO500.dat +28 -0
  26. nucleardatapy/data/matter/micro/2024-ABI-NM-DeltaNNLOgo394.dat +28 -0
  27. nucleardatapy/data/matter/micro/2024-ABI-NM-DeltaNNLOgo450.dat +28 -0
  28. nucleardatapy/data/matter/micro/2024-ABI-NM-NNLOsat.dat +28 -0
  29. nucleardatapy/data/matter/micro/2024-ABI-SM-DeltaNNLO450.dat +28 -0
  30. nucleardatapy/data/matter/micro/2024-ABI-SM-DeltaNNLO500.dat +28 -0
  31. nucleardatapy/data/matter/micro/2024-ABI-SM-DeltaNNLOgo394.dat +28 -0
  32. nucleardatapy/data/matter/micro/2024-ABI-SM-DeltaNNLOgo450.dat +28 -0
  33. nucleardatapy/data/matter/micro/2024-ABI-SM-NNLOsat.dat +28 -0
  34. nucleardatapy/fig/astro_setupGW_fig.py +4 -2
  35. nucleardatapy/fig/astro_setupMR_fig.py +14 -8
  36. nucleardatapy/fig/astro_setupMasses_fig.py +4 -2
  37. nucleardatapy/fig/astro_setupMtov_fig.py +6 -2
  38. nucleardatapy/fig/astro_setupMup_fig.py +4 -2
  39. nucleardatapy/fig/corr_setupEsymDen_fig.py +10 -4
  40. nucleardatapy/fig/corr_setupEsymLsym_fig.py +7 -3
  41. nucleardatapy/fig/corr_setupKsatQsat_fig.py +4 -2
  42. nucleardatapy/fig/crust_setupCrust_fig.py +6 -4
  43. nucleardatapy/fig/eos_setupAMBeq_fig.py +162 -134
  44. nucleardatapy/fig/eos_setupAMLeq_fig.py +35 -32
  45. nucleardatapy/fig/eos_setupAM_asy_lep_fig.py +39 -30
  46. nucleardatapy/fig/eos_setupAM_asy_nuc_fig.py +39 -30
  47. nucleardatapy/fig/eos_setupAM_asy_tot_fig.py +39 -30
  48. nucleardatapy/fig/eos_setupAM_fig.py +45 -30
  49. nucleardatapy/fig/eos_setupCC_fig.py +54 -24
  50. nucleardatapy/fig/hnuc_setupChart_fig.py +20 -16
  51. nucleardatapy/fig/hnuc_setupRE1LExp_fig.py +12 -2
  52. nucleardatapy/fig/matter_all_fig.py +55 -38
  53. nucleardatapy/fig/matter_setupCheck_fig.py +6 -3
  54. nucleardatapy/fig/matter_setupFFGLep_fig.py +13 -9
  55. nucleardatapy/fig/matter_setupFFGNuc_fig.py +22 -14
  56. nucleardatapy/fig/matter_setupHIC_fig.py +9 -9
  57. nucleardatapy/fig/matter_setupMicroEsym_fig.py +31 -30
  58. nucleardatapy/fig/matter_setupMicro_LP_fig.py +11 -5
  59. nucleardatapy/fig/matter_setupMicro_band_fig.py +11 -6
  60. nucleardatapy/fig/matter_setupMicro_effmass_fig.py +5 -4
  61. nucleardatapy/fig/matter_setupMicro_err_NM_fig.py +4 -2
  62. nucleardatapy/fig/matter_setupMicro_fig.py +30 -22
  63. nucleardatapy/fig/matter_setupMicro_gap_fig.py +22 -12
  64. nucleardatapy/fig/matter_setupNEPStats_fig.py +13 -3
  65. nucleardatapy/fig/matter_setupPhenoEsym_fig.py +28 -27
  66. nucleardatapy/fig/matter_setupPheno_fig.py +22 -17
  67. nucleardatapy/fig/nuc_setupBEExp_chart_fig.py +67 -37
  68. nucleardatapy/fig/nuc_setupBEExp_fig.py +49 -46
  69. nucleardatapy/fig/nuc_setupBETheo_fig.py +55 -50
  70. nucleardatapy/fig/nuc_setupISGMRExp_fig.py +7 -10
  71. nucleardatapy/fig/nuc_setupRchExp_fig.py +12 -20
  72. nucleardatapy/fig/nuc_setupRchTheo_fig.py +16 -20
  73. nucleardatapy/fig/nuc_setupRnpExp_fig.py +12 -0
  74. nucleardatapy/fig/nuc_setupRnpTheo_fig.py +14 -2
  75. nucleardatapy/hnuc/setup_re2L_exp.py +30 -7
  76. nucleardatapy/matter/setup_micro.py +424 -12
  77. nucleardatapy/matter/setup_micro_band.py +1 -1
  78. nucleardatapy/matter/setup_micro_esym.py +46 -42
  79. nucleardatapy/matter/setup_nep.py +1 -1
  80. nucleardatapy/matter/setup_pheno.py +10 -6
  81. nucleardatapy/matter/setup_pheno_esym.py +14 -6
  82. nucleardatapy/nuc/setup_be_exp.py +4 -2
  83. nucleardatapy/nuc/setup_be_theo.py +101 -215
  84. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.2.dist-info}/METADATA +1 -1
  85. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.2.dist-info}/RECORD +88 -62
  86. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.2.dist-info}/WHEEL +1 -1
  87. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.2.dist-info}/licenses/LICENSE +0 -0
  88. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.2.dist-info}/top_level.txt +0 -0
@@ -5,19 +5,20 @@ import nucleardatapy as nuda
5
5
 
6
6
  def nuc_setupBETheo_diff_fig( pname, tables, table_ref = '1995-DZ', Zref = 50 ):
7
7
  """
8
- Plot nuclear chart (N versus Z).\
9
- The plot is 1x1 with:\
10
- [0]: nuclear chart.
8
+ Plot the energy difference between theoretical mass tables with respect to `table_ref`.
9
+
10
+ The plot is 1x1 with:
11
+
12
+ [0]: show the energy difference as a function of N.
11
13
 
12
14
  :param pname: name of the figure (*.png)
13
15
  :type pname: str.
14
- :param table: table.
15
- :type table: str.
16
- :param version: version of table to run on.
17
- :type version: str.
18
- :param theo_tables: object instantiated on the reference band.
19
- :type theo_tables: object.
20
-
16
+ :param tables: tables.
17
+ :type tables: array of str.
18
+ :param table_ref: reference table.
19
+ :type table_ref: str.
20
+ :param Zref: Reference value for Z.
21
+ :type Zref: integer.
21
22
  """
22
23
  #
23
24
  print(f'Plot name: {pname}')
@@ -68,19 +69,20 @@ def nuc_setupBETheo_diff_fig( pname, tables, table_ref = '1995-DZ', Zref = 50 ):
68
69
 
69
70
  def nuc_setupBETheo_S2n_fig( pname, tables, Zref = 50 ):
70
71
  """
71
- Plot nuclear chart (N versus Z).\
72
- The plot is 1x1 with:\
73
- [0]: nuclear chart.
72
+ Plot S2n from the data extracted from the theoretical mass table.
73
+
74
+ The plot is 1x1 with:
75
+
76
+ [0]: show S2n as a function of N.
74
77
 
75
78
  :param pname: name of the figure (*.png)
76
79
  :type pname: str.
77
- :param table: table.
78
- :type table: str.
79
- :param version: version of table to run on.
80
- :type version: str.
81
- :param theo_tables: object instantiated on the reference band.
82
- :type theo_tables: object.
83
-
80
+ :param tables: tables.
81
+ :type tables: array of str.
82
+ :param versions: versions of the tables.
83
+ :type versions: array of str.
84
+ :param Zref: Reference value for Z.
85
+ :type Zref: integer.
84
86
  """
85
87
  #
86
88
  print(f'Plot name: {pname}')
@@ -136,19 +138,20 @@ def nuc_setupBETheo_S2n_fig( pname, tables, Zref = 50 ):
136
138
 
137
139
  def nuc_setupBETheo_S2p_fig( pname, tables, Nref = 50 ):
138
140
  """
139
- Plot nuclear chart (N versus Z).\
140
- The plot is 1x1 with:\
141
- [0]: nuclear chart.
141
+ Plot S2p from the data extracted from the theoretical mass table.
142
+
143
+ The plot is 1x1 with:
144
+
145
+ [0]: show S2p as a function of Z.
142
146
 
143
147
  :param pname: name of the figure (*.png)
144
148
  :type pname: str.
145
- :param table: table.
146
- :type table: str.
147
- :param version: version of table to run on.
148
- :type version: str.
149
- :param theo_tables: object instantiated on the reference band.
150
- :type theo_tables: object.
151
-
149
+ :param tables: tables.
150
+ :type tables: array of str.
151
+ :param versions: versions of the tables.
152
+ :type versions: array of str.
153
+ :param Nref: Reference value for N.
154
+ :type Nref: integer.
152
155
  """
153
156
  #
154
157
  print(f'Plot name: {pname}')
@@ -201,19 +204,20 @@ def nuc_setupBETheo_S2p_fig( pname, tables, Nref = 50 ):
201
204
 
202
205
  def nuc_setupBETheo_D3n_fig( pname, tables, Zref = 50 ):
203
206
  """
204
- Plot nuclear chart (N versus Z).\
205
- The plot is 1x1 with:\
206
- [0]: nuclear chart.
207
+ Plot D3n (3-point formula for the odd-even mass staggering) from the data extracted from the theoretical mass table.
208
+
209
+ The plot is 1x1 with:
210
+
211
+ [0]: show D3n as a function of N.
207
212
 
208
213
  :param pname: name of the figure (*.png)
209
214
  :type pname: str.
210
- :param table: table.
211
- :type table: str.
212
- :param version: version of table to run on.
213
- :type version: str.
214
- :param theo_tables: object instantiated on the reference band.
215
- :type theo_tables: object.
216
-
215
+ :param tables: tables.
216
+ :type tables: array of str.
217
+ :param versions: versions of the tables.
218
+ :type versions: array of str.
219
+ :param Zref: Reference value for Z.
220
+ :type Zref: integer.
217
221
  """
218
222
  #
219
223
  print(f'Plot name: {pname}')
@@ -272,19 +276,20 @@ def nuc_setupBETheo_D3n_fig( pname, tables, Zref = 50 ):
272
276
 
273
277
  def nuc_setupBETheo_D3p_fig( pname, tables, Nref = 50 ):
274
278
  """
275
- Plot nuclear chart (N versus Z).\
276
- The plot is 1x1 with:\
277
- [0]: nuclear chart.
279
+ Plot D3p (3-point formula for the odd-even mass staggering) from the data extracted from the theoretical mass table.
280
+
281
+ The plot is 1x1 with:
282
+
283
+ [0]: show D3p as a function of Z.
278
284
 
279
285
  :param pname: name of the figure (*.png)
280
286
  :type pname: str.
281
- :param table: table.
282
- :type table: str.
283
- :param version: version of table to run on.
284
- :type version: str.
285
- :param theo_tables: object instantiated on the reference band.
286
- :type theo_tables: object.
287
-
287
+ :param tables: tables.
288
+ :type tables: array of str.
289
+ :param versions: versions of the tables.
290
+ :type versions: array of str.
291
+ :param Nref: Reference value for N.
292
+ :type Nref: integer.
288
293
  """
289
294
  #
290
295
  print(f'Plot name: {pname}')
@@ -5,19 +5,16 @@ import nucleardatapy as nuda
5
5
 
6
6
  def nuc_setupISGMRExp_fig( pname, tables ):
7
7
  """
8
- Plot nuclear chart (N versus Z).\
9
- The plot is 1x1 with:\
10
- [0]: nuclear chart.
8
+ Plot the experimental ISGMR energy from the tables.
9
+
10
+ The plot is 1x3 with:
11
+
12
+ [0]: for Zr. [1]: for Sn. [2]: for Pb.
11
13
 
12
14
  :param pname: name of the figure (*.png)
13
15
  :type pname: str.
14
- :param table: table.
15
- :type table: str.
16
- :param version: version of table to run on.
17
- :type version: str.
18
- :param theo_tables: object instantiated on the reference band.
19
- :type theo_tables: object.
20
-
16
+ :param tables: tables.
17
+ :type tables: array of str.
21
18
  """
22
19
  #
23
20
  print(f'Plot name: {pname}')
@@ -5,19 +5,16 @@ import nucleardatapy as nuda
5
5
 
6
6
  def nuc_setupRchExp_fig( pname, tables ):
7
7
  """
8
- Plot nuclear chart (N versus Z).\
9
- The plot is 1x1 with:\
10
- [0]: nuclear chart.
8
+ Plot the experimental charge radii from the tables.
9
+
10
+ The plot is 1x1 with:
11
+
12
+ [0]: Rch as a function of N.
11
13
 
12
14
  :param pname: name of the figure (*.png)
13
15
  :type pname: str.
14
- :param table: table.
15
- :type table: str.
16
- :param version: version of table to run on.
17
- :type version: str.
18
- :param theo_tables: object instantiated on the reference band.
19
- :type theo_tables: object.
20
-
16
+ :param tables: tables.
17
+ :type tables: array of str.
21
18
  """
22
19
  #
23
20
  print(f'Plot name: {pname}')
@@ -53,19 +50,14 @@ def nuc_setupRchExp_fig( pname, tables ):
53
50
 
54
51
  def nuc_setupRchExp_3Zref_fig( pname, tables ):
55
52
  """
56
- Plot nuclear chart (N versus Z).\
57
- The plot is 1x1 with:\
58
- [0]: nuclear chart.
53
+ Plot the experimental charge radii from the tables.\\
54
+ The plot is 1x1 with:\\
55
+ [0]: Rch as a function of N. \\
59
56
 
60
57
  :param pname: name of the figure (*.png)
61
58
  :type pname: str.
62
- :param table: table.
63
- :type table: str.
64
- :param version: version of table to run on.
65
- :type version: str.
66
- :param theo_tables: object instantiated on the reference band.
67
- :type theo_tables: object.
68
-
59
+ :param tables: tables.
60
+ :type tables: array of str.
69
61
  """
70
62
  #
71
63
  print(f'Plot name: {pname}')
@@ -5,19 +5,18 @@ import nucleardatapy as nuda
5
5
 
6
6
  def nuc_setupRchTheo_fig( pname, tables, table_exp ):
7
7
  """
8
- Plot nuclear chart (N versus Z).\
9
- The plot is 1x1 with:\
10
- [0]: nuclear chart.
8
+ Plot the theoretical charge radii from the tables and compare to the experimental value.
9
+
10
+ The plot is 1x1 with:
11
+
12
+ [0]: Rch as a function of N.
11
13
 
12
14
  :param pname: name of the figure (*.png)
13
15
  :type pname: str.
14
- :param table: table.
15
- :type table: str.
16
- :param version: version of table to run on.
17
- :type version: str.
18
- :param theo_tables: object instantiated on the reference band.
19
- :type theo_tables: object.
20
-
16
+ :param tables: theoretical tables.
17
+ :type tables: array of str.
18
+ :param table_exp: experimental table.
19
+ :type table_exp: str.
21
20
  """
22
21
  #
23
22
  print(f'Plot name: {pname}')
@@ -85,19 +84,16 @@ def nuc_setupRchTheo_fig( pname, tables, table_exp ):
85
84
 
86
85
  def nuc_setupRchTheo_3Zref_fig( pname, tables, table_exp ):
87
86
  """
88
- Plot nuclear chart (N versus Z).\
89
- The plot is 1x1 with:\
90
- [0]: nuclear chart.
87
+ Plot the theoretical charge radii from the tables and compare to the experimental value.\\
88
+ The plot is 1x1 with:\\
89
+ [0]: Rch as a function of N. \\
91
90
 
92
91
  :param pname: name of the figure (*.png)
93
92
  :type pname: str.
94
- :param table: table.
95
- :type table: str.
96
- :param version: version of table to run on.
97
- :type version: str.
98
- :param theo_tables: object instantiated on the reference band.
99
- :type theo_tables: object.
100
-
93
+ :param tables: theoretical tables.
94
+ :type tables: array of str.
95
+ :param table_exp: experimental table.
96
+ :type table_exp: str.
101
97
  """
102
98
  #
103
99
  print(f'Plot name: {pname}')
@@ -11,6 +11,18 @@ SOURCE_LABELS_LATEX = {
11
11
  }
12
12
 
13
13
  def nuc_setupRnpExp_fig(pname=None, source=None):
14
+ """
15
+ Plot the experimental np radii (neutron skin).
16
+
17
+ The plot is 1x1 with:
18
+
19
+ [0]: Rch as a function of N.
20
+
21
+ :param pname: name of the figure (*.png)
22
+ :type pname: str.
23
+ :param source: experimental table.
24
+ :type source: str.
25
+ """
14
26
  print(f"Using source: {source}")
15
27
 
16
28
  # subplot_label = "(a)"
@@ -7,8 +7,8 @@ import nucleardatapy as nuda
7
7
 
8
8
  # Dictionary to map sources to LaTeX names
9
9
  SOURCE_LABELS_LATEX = {
10
- "48Ca": r"$^{48}\mathrm{Ca}$",
11
- "208Pb": r"$^{208}\mathrm{Pb}$"
10
+ "48Ca": r"$^{48}$Ca",
11
+ "208Pb": r"$^{208}$Pb"
12
12
  }
13
13
 
14
14
  # Directory containing the model data tables
@@ -42,6 +42,18 @@ def read_model_data(directory, source):
42
42
  return model_data
43
43
 
44
44
  def nuc_setupRnpTheo_fig(pname, source):
45
+ """
46
+ Plot the theoretical np radii (neutron skin).
47
+
48
+ The plot is 1x1 with:
49
+
50
+ [0]: Rch as a function of N.
51
+
52
+ :param pname: name of the figure (*.png)
53
+ :type pname: str.
54
+ :param source: experimental table.
55
+ :type source: str.
56
+ """
45
57
  print(f'Plot name: {pname}')
46
58
  print(f'Using source: {source}')
47
59
 
@@ -16,7 +16,8 @@ def re2L_exp_tables():
16
16
  #
17
17
  if nuda.env.verb: print("\nEnter re2L_exp_tables()")
18
18
  #
19
- tables = [ '2013-2L-Ahn' ]
19
+ #tables = [ '2013-2L-Ahn' ]
20
+ tables = [ '1991-2L-Yamamoto', '2013-2L-Ahn', '2019-2L-Ekawa' ]
20
21
  #
21
22
  #print('tables available in the toolkit:',tables)
22
23
  tables_lower = [ item.lower() for item in tables ]
@@ -78,7 +79,18 @@ class setupRE2LExp():
78
79
  color = []
79
80
  mark = []
80
81
  #
81
- if table.lower() == '2013-2l-ahn':
82
+ if table.lower() == '1991-2l-yamamoto':
83
+ #
84
+ file_in = os.path.join(nuda.param.path_data,'hnuclei/1991-2L-Yamamoto.csv')
85
+ if nuda.env.verb: print('Reads file:',file_in)
86
+ #: Attribute providing the full reference to the paper to be citted.
87
+ self.ref = 'Y. Yamamoto, H. Takaki, K. Ikeda, Prog. Theo. Phys. 86, 867 (1991).'
88
+ self.keyref = 'YYamamoto:1991'
89
+ #: Attribute providing additional notes about the data.
90
+ self.note = "https://doi.org/10.1143/ptp/86.4.867"
91
+ #
92
+
93
+ elif table.lower() == '2013-2l-ahn':
82
94
  #
83
95
  file_in = os.path.join(nuda.param.path_data,'hnuclei/2013-2L-Ahn.csv')
84
96
  if nuda.env.verb: print('Reads file:',file_in)
@@ -88,6 +100,16 @@ class setupRE2LExp():
88
100
  #: Attribute providing additional notes about the data.
89
101
  self.note = "write here notes about this table."
90
102
  #
103
+ if table.lower() == '2019-2l-ekawa':
104
+ #
105
+ file_in = os.path.join(nuda.param.path_data,'hnuclei/2019-2L-Ekawa.csv')
106
+ if nuda.env.verb: print('Reads file:',file_in)
107
+ #: Attribute providing the full reference to the paper to be citted.
108
+ self.ref = 'H. Ekawa et al., PTEP 2019, 021D02.'
109
+ self.keyref = 'HEkawa:2019'
110
+ #: Attribute providing additional notes about the data.
111
+ self.note = "write here notes about this table."
112
+ #
91
113
  #
92
114
  with open(file_in,'r') as file:
93
115
  for line in file:
@@ -102,11 +124,12 @@ class setupRE2LExp():
102
124
  nuclre_err.append(linesplit[4].strip())
103
125
  nucldre.append(linesplit[5].strip())
104
126
  nucldre_err.append(linesplit[6].strip())
105
- probe.append(linesplit[6].strip().strip('\n'))
106
- if probe[-1] == 'emul':
107
- label.append("Ahn-2013 Emul")
108
- color.append('blue')
109
- mark.append('s')
127
+ label.append(linesplit[7].strip('\n'))
128
+ probe.append(linesplit[7].strip().strip('\n'))
129
+ color.append('blue')
130
+ mark.append('s')
131
+ print('label:',label[-1])
132
+ print('probe:',probe[-1])
110
133
  else:
111
134
  break
112
135
  #