nucleardatapy 1.0.0__py3-none-any.whl → 1.0.1__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 (87) 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 +17 -14
  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 +40 -31
  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_esym.py +46 -42
  78. nucleardatapy/matter/setup_nep.py +1 -1
  79. nucleardatapy/matter/setup_pheno.py +10 -6
  80. nucleardatapy/matter/setup_pheno_esym.py +14 -6
  81. nucleardatapy/nuc/setup_be_exp.py +4 -2
  82. nucleardatapy/nuc/setup_be_theo.py +19 -12
  83. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/METADATA +1 -1
  84. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/RECORD +87 -61
  85. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/WHEEL +0 -0
  86. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/licenses/LICENSE +0 -0
  87. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/top_level.txt +0 -0
@@ -5,15 +5,20 @@ import nucleardatapy as nuda
5
5
 
6
6
  def matter_setupMicro_gap_1s0_fig(pname, models, matter="NM"):
7
7
  """
8
- Plot the correlation between Esym and Lsym.\
9
- The plot is 2x2 with:\
10
- [0,0]: Esym - Lsym correlation plot
8
+ Plot the 1S0 pairing gap in `matter`.
9
+
10
+ The plot is 2x2 with:
11
+
12
+ [0,0]: gap versus den. [0,1]: gap versus kfn.
13
+
14
+ [1,0]: gap/EF versus den. [1,1]: gap/EF versus kfn.
11
15
 
12
16
  :param pname: name of the figure (*.png)
13
17
  :type pname: str.
14
- :param constraints: list of constraints to run on.
15
- :type constraints: array of str.
16
-
18
+ :param models: models to run on.
19
+ :type models: array of str.
20
+ :param matter: can be 'SM' or 'NM' (default).
21
+ :type matter: str.
17
22
  """
18
23
  #
19
24
  print(f"Plot name: {pname}")
@@ -100,15 +105,20 @@ def matter_setupMicro_gap_1s0_fig(pname, models, matter="NM"):
100
105
 
101
106
  def matter_setupMicro_gap_3pf2_fig(pname, models, matter="NM"):
102
107
  """
103
- Plot the correlation between Esym and Lsym.\
104
- The plot is 2x2 with:\
105
- [0,0]: Esym - Lsym correlation plot
108
+ Plot the 3PF2 pairing gap in `matter`.
109
+
110
+ The plot is 2x2 with:
111
+
112
+ [0,0]: gap versus den. [0,1]: gap versus kfn.
113
+
114
+ [1,0]: gap/EF versus den. [1,1]: gap/EF versus kfn.
106
115
 
107
116
  :param pname: name of the figure (*.png)
108
117
  :type pname: str.
109
- :param constraints: list of constraints to run on.
110
- :type constraints: array of str.
111
-
118
+ :param models: models to run on.
119
+ :type models: array of str.
120
+ :param matter: can be 'SM' or 'NM' (default).
121
+ :type matter: str.
112
122
  """
113
123
  #
114
124
  print(f"Plot name: {pname}")
@@ -6,9 +6,19 @@ import nucleardatapy as nuda
6
6
 
7
7
  def matter_setupNEPStats_fig(pname, models):
8
8
  """
9
- Plot nucleonic energy per particle E/A in matter.\
10
- The plot is 5x2 with:\
11
- [0,0]: E/A versus den (micro). [0,1]: E/A versus den (pheno).\
9
+ Plot the PDF for NEPs.
10
+
11
+ The plot is 5x2 with:
12
+
13
+ [0,0]: Esat. [0,1]: Esym.
14
+
15
+ [1,0]: nsat. [1,1]: Lsym.
16
+
17
+ [2,0]: Ksat. [2,1]: Ksym.
18
+
19
+ [3,0]: Qsat. [3,1]: Qsym.
20
+
21
+ [4,0]: m*sat/m. [4,1]: Delta m*sat/m.
12
22
 
13
23
  :param pname: name of the figure (*.png)
14
24
  :type pname: str.
@@ -6,26 +6,27 @@ import nucleardatapy as nuda
6
6
 
7
7
  def matter_setupPhenoEsym_fig(pname, models, band):
8
8
  """
9
- Plot nuclear chart (N versus Z).\
10
- The plot is 1x2 with:\
11
- [0]: nuclear chart.
9
+ Plot the symmetry energy esym for phenomenologic models.
10
+
11
+ The plot is 2x2 with:
12
+
13
+ [0,0]: esym function of the density. [0,1]: esym function of the Fermi momentum.
14
+
15
+ [0,0]: esym/esym,FFG function of the density. [0,1]: esym/esym,FFG function of the Fermi momentum.
12
16
 
13
17
  :param pname: name of the figure (*.png)
14
18
  :type pname: str.
15
- :param table: table.
16
- :type table: str.
17
- :param version: version of table to run on.
18
- :type version: str.
19
- :param theo_tables: object instantiated on the reference band.
20
- :type theo_tables: object.
21
-
19
+ :param models: list of phenomenological models.
20
+ :type models: array of str.
21
+ :param band: object instantiated on the reference band.
22
+ :type band: object.
22
23
  """
23
24
  #
24
25
  print(f"Plot name: {pname}")
25
26
  #
26
27
  fig, axs = plt.subplots(2, 2)
27
28
  fig.tight_layout() # Or equivalently, "plt.tight_layout()"
28
- fig.subplots_adjust( left=0.12, bottom=0.12, right=0.95, top=0.9, wspace=0.05, hspace=0.05 )
29
+ fig.subplots_adjust( left=0.12, bottom=0.12, right=0.95, top=0.88, wspace=0.05, hspace=0.05 )
29
30
  #
30
31
  axs[0, 0].set_ylabel(r"$E_\mathrm{sym}$ (MeV)")
31
32
  axs[0, 0].set_xlim([0, 0.33])
@@ -134,88 +135,88 @@ def matter_setupPhenoEsym_fig(pname, models, band):
134
135
  #
135
136
  axs[0, 0].fill_between(
136
137
  band.den,
137
- y1=(band.e2a - band.e2a_std),
138
- y2=(band.e2a + band.e2a_std),
138
+ y1=(band.e2a_int - band.e2a_std),
139
+ y2=(band.e2a_int + band.e2a_std),
139
140
  color=band.color,
140
141
  alpha=band.alpha,
141
142
  visible=True,
142
143
  )
143
144
  axs[0, 0].plot(
144
145
  band.den,
145
- (band.e2a - band.e2a_std),
146
+ (band.e2a_int - band.e2a_std),
146
147
  color="k",
147
148
  linestyle="dashed",
148
149
  visible=True, zorder = 100
149
150
  )
150
151
  axs[0, 0].plot(
151
152
  band.den,
152
- (band.e2a + band.e2a_std),
153
+ (band.e2a_int + band.e2a_std),
153
154
  color="k",
154
155
  linestyle="dashed",
155
156
  visible=True, zorder = 100
156
157
  )
157
158
  axs[0, 1].fill_between(
158
159
  band.kfn,
159
- y1=(band.e2a - band.e2a_std),
160
- y2=(band.e2a + band.e2a_std),
160
+ y1=(band.e2a_int - band.e2a_std),
161
+ y2=(band.e2a_int + band.e2a_std),
161
162
  color=band.color,
162
163
  alpha=band.alpha,
163
164
  visible=True,
164
165
  )
165
166
  axs[0, 1].plot(
166
167
  band.kfn,
167
- (band.e2a - band.e2a_std),
168
+ (band.e2a_int - band.e2a_std),
168
169
  color="k",
169
170
  linestyle="dashed",
170
171
  visible=True, zorder = 100
171
172
  )
172
173
  axs[0, 1].plot(
173
174
  band.kfn,
174
- (band.e2a + band.e2a_std),
175
+ (band.e2a_int + band.e2a_std),
175
176
  color="k",
176
177
  linestyle="dashed",
177
178
  visible=True, zorder = 100
178
179
  )
179
180
  axs[1, 0].fill_between(
180
181
  band.den,
181
- y1=(band.e2a - band.e2a_std) / nuda.esymffg_nr(band.kfn),
182
- y2=(band.e2a + band.e2a_std) / nuda.esymffg_nr(band.kfn),
182
+ y1=(band.e2a_int - band.e2a_std) / nuda.esymffg_nr(band.kfn),
183
+ y2=(band.e2a_int + band.e2a_std) / nuda.esymffg_nr(band.kfn),
183
184
  color=band.color,
184
185
  alpha=band.alpha,
185
186
  visible=True,
186
187
  )
187
188
  axs[1, 0].plot(
188
189
  band.den,
189
- (band.e2a - band.e2a_std) / nuda.esymffg_nr(band.kfn),
190
+ (band.e2a_int - band.e2a_std) / nuda.esymffg_nr(band.kfn),
190
191
  color="k",
191
192
  linestyle="dashed",
192
193
  visible=True, zorder = 100
193
194
  )
194
195
  axs[1, 0].plot(
195
196
  band.den,
196
- (band.e2a + band.e2a_std) / nuda.esymffg_nr(band.kfn),
197
+ (band.e2a_int + band.e2a_std) / nuda.esymffg_nr(band.kfn),
197
198
  color="k",
198
199
  linestyle="dashed",
199
200
  visible=True, zorder = 100
200
201
  )
201
202
  axs[1, 1].fill_between(
202
203
  band.kf,
203
- y1=(band.e2a - band.e2a_std) / nuda.esymffg_nr(band.kfn),
204
- y2=(band.e2a + band.e2a_std) / nuda.esymffg_nr(band.kfn),
204
+ y1=(band.e2a_int - band.e2a_std) / nuda.esymffg_nr(band.kfn),
205
+ y2=(band.e2a_int + band.e2a_std) / nuda.esymffg_nr(band.kfn),
205
206
  color=band.color,
206
207
  alpha=band.alpha,
207
208
  visible=True,
208
209
  )
209
210
  axs[1, 1].plot(
210
211
  band.kfn,
211
- (band.e2a - band.e2a_std) / nuda.esymffg_nr(band.kfn),
212
+ (band.e2a_int - band.e2a_std) / nuda.esymffg_nr(band.kfn),
212
213
  color="k",
213
214
  linestyle="dashed",
214
215
  visible=True, zorder = 100
215
216
  )
216
217
  axs[1, 1].plot(
217
218
  band.kfn,
218
- (band.e2a + band.e2a_std) / nuda.esymffg_nr(band.kfn),
219
+ (band.e2a_int + band.e2a_std) / nuda.esymffg_nr(band.kfn),
219
220
  color="k",
220
221
  linestyle="dashed",
221
222
  visible=True, zorder = 100
@@ -3,13 +3,15 @@ import matplotlib.pyplot as plt
3
3
 
4
4
  import nucleardatapy as nuda
5
5
 
6
-
7
- def matter_setupPheno_e2a_fig(pname, model, band):
6
+ def matter_setupPheno_e2a_fig(pname, model, band, matter):
8
7
  """
9
- Plot nucleonic energy per particle E/A in matter.\
10
- The plot is 2x2 with:\
11
- [0,0]: E/A versus den. [0,1]: E/A versus kfn.\
12
- [1,0]: E/E_NRFFG versus den. [1,1]: E/E_NRFFG versus kfn.\
8
+ Plot nucleonic internal energy per particle E/A in `matter`.
9
+
10
+ The plot is 2x2 with:
11
+
12
+ [0,0]: E/A versus den. [0,1]: E/A versus kfn.
13
+
14
+ [1,0]: E/E_NRFFG versus den. [1,1]: E/E_NRFFG versus kfn.
13
15
 
14
16
  :param pname: name of the figure (*.png)
15
17
  :type pname: str.
@@ -19,7 +21,6 @@ def matter_setupPheno_e2a_fig(pname, model, band):
19
21
  :type band: object.
20
22
  :param matter: can be 'SM' or 'NM'.
21
23
  :type matter: str.
22
-
23
24
  """
24
25
  #
25
26
  print(f"Plot name: {pname}")
@@ -218,12 +219,15 @@ def matter_setupPheno_e2a_fig(pname, model, band):
218
219
  plt.close()
219
220
  #
220
221
 
221
- def matter_setupPheno_pre_fig(pname, model, band):
222
+ def matter_setupPheno_pre_fig(pname, model, band, matter):
222
223
  """
223
- Plot nucleonic pressure in matter.\
224
- The plot is 2x2 with:\
225
- [0,0]: pre versus den. [0,1]: pre versus kfn.\
226
- [1,0]: pre/pre_NRFFG versus den. [1,1]: pre/pre_NRFFG versus kfn.\
224
+ Plot nucleonic pressure in matter.
225
+
226
+ The plot is 2x2 with:
227
+
228
+ [0,0]: pre versus den. [0,1]: pre versus kfn.
229
+
230
+ [1,0]: pre/pre_NRFFG versus den. [1,1]: pre/pre_NRFFG versus kfn.
227
231
 
228
232
  :param pname: name of the figure (*.png)
229
233
  :type pname: str.
@@ -329,11 +333,13 @@ def matter_setupPheno_pre_fig(pname, model, band):
329
333
  plt.close()
330
334
  #
331
335
 
332
- def matter_setupPheno_cs2_fig(pname, model, band):
336
+ def matter_setupPheno_cs2_fig(pname, model, band, matter):
333
337
  """
334
- Plot nucleonic sound speed in matter.\
335
- The plot is 1x2 with:\
336
- [0]: cs2 versus den. [1]: cs2 versus kfn.\
338
+ Plot nucleonic sound speed in matter.
339
+
340
+ The plot is 1x2 with:
341
+
342
+ [0]: cs2 versus den. [1]: cs2 versus kfn.
337
343
 
338
344
  :param pname: name of the figure (*.png)
339
345
  :type pname: str.
@@ -343,7 +349,6 @@ def matter_setupPheno_cs2_fig(pname, model, band):
343
349
  :type band: object.
344
350
  :param matter: can be 'SM' or 'NM'.
345
351
  :type matter: str.
346
-
347
352
  """
348
353
  #
349
354
  print(f"Plot name: {pname}")
@@ -5,8 +5,10 @@ import nucleardatapy as nuda
5
5
 
6
6
  def nuc_setupBEExp_chart_lt_fig( pname, table, version, theo_tables ):
7
7
  """
8
- Plot nuclear chart (N versus Z).\
9
- The plot is 1x1 with:\
8
+ Plot nuclear chart (N versus Z).
9
+
10
+ The plot is 1x1 with:
11
+
10
12
  [0]: nuclear chart.
11
13
 
12
14
  :param pname: name of the figure (*.png)
@@ -17,7 +19,6 @@ def nuc_setupBEExp_chart_lt_fig( pname, table, version, theo_tables ):
17
19
  :type version: str.
18
20
  :param theo_tables: object instantiated on the reference band.
19
21
  :type theo_tables: object.
20
-
21
22
  """
22
23
  #
23
24
  print(f'Plot name: {pname}')
@@ -77,16 +78,20 @@ def nuc_setupBEExp_chart_lt_fig( pname, table, version, theo_tables ):
77
78
  legend = 0
78
79
  for i,theo_table in enumerate( theo_tables ):
79
80
  theo = nuda.nuc.setupBETheo( table = theo_table )
80
- s2n = theo.S2n( Zmin=1, Zmax = 95 )
81
- drip_S2n = s2n.drip_S2n( Zmin = 1, Zmax = 95 )
82
- if legend == 0:
83
- axs.scatter( drip_S2n.drip_S2n_N, drip_S2n.drip_S2n_Z, marker='o', s = 3, linewidth=0, color = 'purple', label='Drip Lines' )
84
- legend = 1
85
- else:
86
- axs.scatter( drip_S2n.drip_S2n_N, drip_S2n.drip_S2n_Z, marker='o', s = 3, linewidth=0, color = 'purple' )
87
- s2p = theo.S2p( Nmin=1, Nmax = 150 )
88
- drip_S2p = s2p.drip_S2p( Nmin = 1, Nmax = 150 )
89
- axs.scatter( drip_S2p.drip_S2p_N, drip_S2p.drip_S2p_Z, marker='o', s = 3, linewidth=0, color = 'purple' )
81
+ for zref in range(1,96):
82
+ itp = theo.isotopes( Zref= zref)
83
+ s2n = itp.S2n( Zref= zref )
84
+ drip_S2n = itp.drip_S2n(Zref = zref)
85
+ if legend == 0:
86
+ axs.scatter( drip_S2n.drip_S2n_N, drip_S2n.drip_S2n_Z, marker='o', s = 3, linewidth=0, color = 'purple', label='Drip Lines' )
87
+ legend = 1
88
+ else:
89
+ axs.scatter( drip_S2n.drip_S2n_N, drip_S2n.drip_S2n_Z, marker='o', s = 3, linewidth=0, color = 'purple' )
90
+ # for nref in range(1,170):
91
+ # itn = theo.isotones( Nref= nref)
92
+ # s2p = itn.S2p( Nref= nref)
93
+ # drip_S2p = theo.drip_S2p( Nmin=1, Nmax=169)
94
+ # axs.scatter( drip_S2p.drip_S2p_N, drip_S2p.drip_S2p_Z, marker='o', s = 3, linewidth=0, color = 'purple' )
90
95
  #
91
96
  # First and last isotopes
92
97
  #
@@ -132,19 +137,20 @@ def nuc_setupBEExp_chart_lt_fig( pname, table, version, theo_tables ):
132
137
 
133
138
  def nuc_setupBEExp_chart_year_fig( pname, sYear, year_min, year_max ):
134
139
  """
135
- Plot nuclear chart (N versus Z).\
136
- The plot is 1x1 with:\
140
+ Plot nuclear chart (N versus Z) for a range of discovery years.
141
+
142
+ The plot is 1x1 with:
143
+
137
144
  [0]: nuclear chart.
138
145
 
139
146
  :param pname: name of the figure (*.png)
140
147
  :type pname: str.
141
- :param table: table.
142
- :type table: str.
143
- :param version: version of table to run on.
144
- :type version: str.
145
- :param theo_tables: object instantiated on the reference band.
146
- :type theo_tables: object.
147
-
148
+ :param sYear: select nuclei for given discovery years.
149
+ :type sYear: object.
150
+ :param year_min: lower range of the discovery years.
151
+ :type year_min: real.
152
+ :param year_max: upper range of the discovery years.
153
+ :type year_max: real.
148
154
  """
149
155
  #
150
156
  print(f'Plot name: {pname}')
@@ -204,8 +210,10 @@ def nuc_setupBEExp_chart_year_fig( pname, sYear, year_min, year_max ):
204
210
 
205
211
  def nuc_setupBEExp_chart_Rch_fig( pname, table, version, Rch_table ):
206
212
  """
207
- Plot nuclear chart (N versus Z).\
208
- The plot is 1x1 with:\
213
+ Plot nuclear chart (N versus Z).
214
+
215
+ The plot is 1x1 with:
216
+
209
217
  [0]: nuclear chart.
210
218
 
211
219
  :param pname: name of the figure (*.png)
@@ -214,8 +222,8 @@ def nuc_setupBEExp_chart_Rch_fig( pname, table, version, Rch_table ):
214
222
  :type table: str.
215
223
  :param version: version of table to run on.
216
224
  :type version: str.
217
- :param theo_tables: object instantiated on the reference band.
218
- :type theo_tables: object.
225
+ :param Rch_table: table for Rch.
226
+ :type Rch_table: str.
219
227
 
220
228
  """
221
229
  #
@@ -242,9 +250,10 @@ def nuc_setupBEExp_chart_Rch_fig( pname, table, version, Rch_table ):
242
250
  #
243
251
  mas = nuda.nuc.setupBEExp( table = table, version = version )
244
252
  ustbl = mas.select( state= 'gs', interp = 'n', nucleus = 'unstable' )
245
- iso = ustbl.isotopes( Zmin=1, Zmax = 95 )
246
- axs.scatter( iso.isotopes_Nmin, iso.isotopes_Z, marker='s', s = 3, linewidth=0, color = 'green', label='AME boundaries' )
247
- axs.scatter( iso.isotopes_Nmax, iso.isotopes_Z, marker='s', s = 3, linewidth=0, color = 'green' )
253
+ for Zref in range(1,95):
254
+ iso = ustbl.isotopes( Zref = Zref )
255
+ axs.scatter( iso.itp_nucNmin, iso.itp_nucZ, marker='s', s = 3, linewidth=0, color = 'green' )
256
+ axs.scatter( iso.itp_nucNmax, iso.itp_nucZ, marker='s', s = 3, linewidth=0, color = 'green' )
248
257
  #
249
258
  # stable nuclei:
250
259
  #
@@ -266,8 +275,8 @@ def nuc_setupBEExp_chart_Rch_fig( pname, table, version, Rch_table ):
266
275
  #
267
276
  # plot stable_fit
268
277
  #
269
- N, Z = nuda.stable_fit( Zmin = 1, Zmax = 120 )
270
- axs.plot( N, Z, linestyle='dashed', linewidth=1, color='k')
278
+ #N, Z = nuda.stable_fit_N( Zmin = 1, Zmax = 120 )
279
+ #axs.plot( N, Z, linestyle='dashed', linewidth=1, color='k')
271
280
  #
272
281
  # plot shells for isotopes and isotones
273
282
  #
@@ -5,9 +5,11 @@ import nucleardatapy as nuda
5
5
 
6
6
  def nuc_setupBEExp_year_fig( pname, table, version ):
7
7
  """
8
- Plot nuclear chart (N versus Z).\
9
- The plot is 1x1 with:\
10
- [0]: nuclear chart.
8
+ Plot the histogram for the discovery year.
9
+
10
+ The plot is 1x2 with:
11
+
12
+ [0]: full range of years. [1]: last two decades.
11
13
 
12
14
  :param pname: name of the figure (*.png)
13
15
  :type pname: str.
@@ -15,9 +17,6 @@ def nuc_setupBEExp_year_fig( pname, table, version ):
15
17
  :type table: str.
16
18
  :param version: version of table to run on.
17
19
  :type version: str.
18
- :param theo_tables: object instantiated on the reference band.
19
- :type theo_tables: object.
20
-
21
20
  """
22
21
  #
23
22
  print(50*'-')
@@ -67,19 +66,20 @@ def nuc_setupBEExp_year_fig( pname, table, version ):
67
66
 
68
67
  def nuc_setupBEExp_S2n_fig( pname, tables, versions, Zref = 50 ):
69
68
  """
70
- Plot nuclear chart (N versus Z).\
71
- The plot is 1x1 with:\
72
- [0]: nuclear chart.
69
+ Plot S2n from the data extracted from the nuclear chart.
70
+
71
+ The plot is 1x1 with:
72
+
73
+ [0]: show S2n as a function of N.
73
74
 
74
75
  :param pname: name of the figure (*.png)
75
76
  :type pname: str.
76
- :param table: table.
77
- :type table: str.
78
- :param version: version of table to run on.
79
- :type version: str.
80
- :param theo_tables: object instantiated on the reference band.
81
- :type theo_tables: object.
82
-
77
+ :param tables: tables.
78
+ :type tables: array of str.
79
+ :param versions: versions of the tables.
80
+ :type versions: array of str.
81
+ :param Zref: Reference value for Z.
82
+ :type Zref: integer.
83
83
  """
84
84
  #
85
85
  print(f'Plot name: {pname}')
@@ -120,19 +120,20 @@ def nuc_setupBEExp_S2n_fig( pname, tables, versions, Zref = 50 ):
120
120
 
121
121
  def nuc_setupBEExp_S2p_fig( pname, tables, versions, Nref = 50 ):
122
122
  """
123
- Plot nuclear chart (N versus Z).\
124
- The plot is 1x1 with:\
125
- [0]: nuclear chart.
123
+ Plot S2p from the data extracted from the nuclear chart.
124
+
125
+ The plot is 1x1 with:
126
+
127
+ [0]: show S2p as a function of Z.
126
128
 
127
129
  :param pname: name of the figure (*.png)
128
130
  :type pname: str.
129
- :param table: table.
130
- :type table: str.
131
- :param version: version of table to run on.
132
- :type version: str.
133
- :param theo_tables: object instantiated on the reference band.
134
- :type theo_tables: object.
135
-
131
+ :param tables: tables.
132
+ :type tables: array of str.
133
+ :param versions: versions of the tables.
134
+ :type versions: array of str.
135
+ :param Nref: Reference value for N.
136
+ :type Nref: integer.
136
137
  """
137
138
  #
138
139
  print(f'Plot name: {pname}')
@@ -173,19 +174,20 @@ def nuc_setupBEExp_S2p_fig( pname, tables, versions, Nref = 50 ):
173
174
 
174
175
  def nuc_setupBEExp_D3n_fig( pname, tables, versions, Zref = 50 ):
175
176
  """
176
- Plot nuclear chart (N versus Z).\
177
- The plot is 1x1 with:\
178
- [0]: nuclear chart.
177
+ Plot D3n (3-point formula for the odd-even mass staggering) from the data extracted from the nuclear chart.
178
+
179
+ The plot is 1x1 with:
180
+
181
+ [0]: show D3n as a function of N.
179
182
 
180
183
  :param pname: name of the figure (*.png)
181
184
  :type pname: str.
182
- :param table: table.
183
- :type table: str.
184
- :param version: version of table to run on.
185
- :type version: str.
186
- :param theo_tables: object instantiated on the reference band.
187
- :type theo_tables: object.
188
-
185
+ :param tables: tables.
186
+ :type tables: array of str.
187
+ :param versions: versions of the tables.
188
+ :type versions: array of str.
189
+ :param Zref: Reference value for Z.
190
+ :type Zref: integer.
189
191
  """
190
192
  #
191
193
  print(f'Plot name: {pname}')
@@ -229,19 +231,20 @@ def nuc_setupBEExp_D3n_fig( pname, tables, versions, Zref = 50 ):
229
231
 
230
232
  def nuc_setupBEExp_D3p_fig( pname, tables, versions, Nref = 50 ):
231
233
  """
232
- Plot nuclear chart (N versus Z).\
233
- The plot is 1x1 with:\
234
- [0]: nuclear chart.
234
+ Plot D3p (3-point formula for the odd-even mass staggering) from the data extracted from the nuclear chart.
235
+
236
+ The plot is 1x1 with:
237
+
238
+ [0]: show D3p as a function of Z.
235
239
 
236
240
  :param pname: name of the figure (*.png)
237
241
  :type pname: str.
238
- :param table: table.
239
- :type table: str.
240
- :param version: version of table to run on.
241
- :type version: str.
242
- :param theo_tables: object instantiated on the reference band.
243
- :type theo_tables: object.
244
-
242
+ :param tables: tables.
243
+ :type tables: array of str.
244
+ :param versions: versions of the tables.
245
+ :type versions: array of str.
246
+ :param Nref: Reference value for N.
247
+ :type Nref: integer.
245
248
  """
246
249
  #
247
250
  print(f'Plot name: {pname}')