ararpy 0.2.5__tar.gz → 0.2.7__tar.gz

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 (82) hide show
  1. {ararpy-0.2.5 → ararpy-0.2.7}/PKG-INFO +1 -1
  2. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/__init__.py +2 -2
  3. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/age.py +1 -1
  4. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/files/arr_file.py +1 -1
  5. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/basic.py +13 -1
  6. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/export.py +2 -2
  7. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/table.py +3 -2
  8. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy.egg-info/PKG-INFO +1 -1
  9. {ararpy-0.2.5 → ararpy-0.2.7}/setup.py +1 -1
  10. {ararpy-0.2.5 → ararpy-0.2.7}/LICENSE +0 -0
  11. {ararpy-0.2.5 → ararpy-0.2.7}/README.md +0 -0
  12. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/Example - Check arr.py +0 -0
  13. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/Example - Granite Cooling History.py +0 -0
  14. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/Example - Plot temperature calibration.py +0 -0
  15. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/Example - Show MDD results.py +0 -0
  16. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/Example - Show all Kfs age spectra.py +0 -0
  17. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/Example - Show random walk results.py +0 -0
  18. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/Example - Tc calculation.py +0 -0
  19. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/__init__.py +0 -0
  20. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/arr.py +0 -0
  21. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/basic.py +0 -0
  22. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/corr.py +0 -0
  23. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/err.py +0 -0
  24. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/histogram.py +0 -0
  25. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/isochron.py +0 -0
  26. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/jvalue.py +0 -0
  27. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/plot.py +0 -0
  28. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/raw_funcs.py +0 -0
  29. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/regression.py +0 -0
  30. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/calc/spectra.py +0 -0
  31. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/022_VU124-M11a.ahd +0 -0
  32. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/20WHA0103.age +0 -0
  33. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/22WHA0078.xls +0 -0
  34. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/22WHA0433.age +0 -0
  35. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/22WHA0433.arr +0 -0
  36. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/22WHA0433.full.xls +0 -0
  37. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/24WHN0001-51-592.XLS +0 -0
  38. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/AHD.input-filter +0 -0
  39. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/ArAr.calc +0 -0
  40. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/ArArCALC.age +0 -0
  41. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/NGX-600 - Copy.TXT +0 -0
  42. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/NGX-600.TXT +0 -0
  43. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/NGX-XLS.input-filter +0 -0
  44. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/Qtegra-exported-xls.input-filter +0 -0
  45. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/S01-239.csv +0 -0
  46. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/WH01.irra +0 -0
  47. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/WHA.pdf +0 -0
  48. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/raw_example.xls +0 -0
  49. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/examples/sample-default.smp +0 -0
  50. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/files/__init__.py +0 -0
  51. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/files/basic.py +0 -0
  52. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/files/calc_file.py +0 -0
  53. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/files/new_file.py +0 -0
  54. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/files/raw_file.py +0 -0
  55. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/files/xls.py +0 -0
  56. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/EXPORT_TO_PDF_DATA_PROPERTIES.py +0 -0
  57. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/__init__.py +0 -0
  58. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/calculation.py +0 -0
  59. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/consts.py +0 -0
  60. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/corr.py +0 -0
  61. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/diffusion_funcs.py +0 -0
  62. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/info.py +0 -0
  63. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/initial.py +0 -0
  64. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/json.py +0 -0
  65. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/plots.py +0 -0
  66. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/raw.py +0 -0
  67. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/sample.py +0 -0
  68. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/smp/style.py +0 -0
  69. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/test.py +0 -0
  70. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/thermo/__init__.py +0 -0
  71. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/thermo/arrhenius.py +0 -0
  72. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/thermo/atomic_level_random_walk.py +0 -0
  73. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy/thermo/basic.py +0 -0
  74. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy.egg-info/SOURCES.txt +0 -0
  75. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy.egg-info/dependency_links.txt +0 -0
  76. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy.egg-info/requires.txt +0 -0
  77. {ararpy-0.2.5 → ararpy-0.2.7}/ararpy.egg-info/top_level.txt +0 -0
  78. {ararpy-0.2.5 → ararpy-0.2.7}/setup.cfg +0 -0
  79. {ararpy-0.2.5 → ararpy-0.2.7}/tests/test.py +0 -0
  80. {ararpy-0.2.5 → ararpy-0.2.7}/tests/test2.py +0 -0
  81. {ararpy-0.2.5 → ararpy-0.2.7}/tests/test_error_correlation.py +0 -0
  82. {ararpy-0.2.5 → ararpy-0.2.7}/tests/test_regression_methods.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ararpy
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: A project for Ar-Ar geochronology
5
5
  Home-page: https://github.com/wuyangchn/ararpy.git
6
6
  Author: Yang Wu
@@ -16,10 +16,10 @@ from . import calc, smp, files, thermo, test
16
16
  """ Information """
17
17
 
18
18
  name = 'ararpy'
19
- version = '0.2.5'
19
+ version = '0.2.7'
20
20
  __version__ = version
21
21
  full_version = version
22
- last_update = '2026-01-08'
22
+ last_update = '2026-02-03'
23
23
 
24
24
  """ ArArPy Functions """
25
25
 
@@ -93,7 +93,7 @@ def calc_age_min(F, sF, **kwargs) -> tuple:
93
93
  BB = 1
94
94
  KK = np.exp(t / V) - 1 # 40Arr / 40K Use standard age
95
95
  else: # use Ar40* and K concentrations of primary standard
96
- # not fanished, this function is wrong
96
+ # not finished, this function is wrong
97
97
  BB = (Ab + Ae) / Ae
98
98
  KK = Ap / Kp / f
99
99
  raise TypeError(f"Not use standard age. Not supported.")
@@ -33,6 +33,6 @@ def save(file_path, sample):
33
33
  # with open(file_path, 'w') as f:
34
34
  # # save serialized json data to a readable text
35
35
  # f.write(basic_funcs.getJsonDumps(sample))
36
- return f"{sample.Info.sample.name}.arr"
36
+ return f"{sample.Info.experiment.name}.arr"
37
37
 
38
38
 
@@ -161,6 +161,18 @@ def calc_j(ar40ar39=None, params: dict = None, smp: Sample = None, index: list =
161
161
 
162
162
 
163
163
  def calc_mdf(ar40ar36=None, params: dict = None, smp: Sample = None, index: list = None):
164
+ """
165
+ Parameters
166
+ ----------
167
+ ar40ar36
168
+ params
169
+ smp
170
+ index
171
+
172
+ Returns
173
+ -------
174
+
175
+ """
164
176
  params_index_dict = {
165
177
  71: 'M36', 72: 'sM36', 79: 'M40', 80: 'sM40', 93: 'Air', 94: 'rsAir', 100: 'Discr'
166
178
  }
@@ -193,7 +205,7 @@ def calc_mdf(ar40ar36=None, params: dict = None, smp: Sample = None, index: list
193
205
  for i in range(len(index)):
194
206
  k = calc.corr.mdf(ar40ar36[0][i], ar40ar36[1][i], params['M36'][i], params['M40'][i],
195
207
  params['Air'][i], params['rsAir'][i]) # linear, exp, pow
196
- mdf.append({"linear": k[0:4], "exp": k[4:8], "pow": k[8:12]}[params['Discr'][i].lower()])
208
+ mdf.append({"l": k[0:4], "e": k[4:8], "p": k[8:12]}[params['Discr'][i].lower()[0]])
197
209
 
198
210
  if len(index) == 1:
199
211
  return np.transpose(mdf).squeeze().tolist()
@@ -1980,10 +1980,10 @@ class CreatePDF:
1980
1980
  self.color_rgb_normalized(self.color_hex_to_rgb(plot.set3.border_color))
1981
1981
  ]
1982
1982
  for (x, sx, y, sy, r, i) in data:
1983
- if (i - 1) in set1.data:
1983
+ if i in set1.data:
1984
1984
  pt.scatter(x, y, stroke_color=stroke_colors[0], fill_color=colors[0], line_width=int(float(plot.set1.border_width) / 2),
1985
1985
  size=int(float(plot.set1.symbol_size) / 3), z_index=10)
1986
- elif (i - 1) in set2.data:
1986
+ elif i in set2.data:
1987
1987
  pt.scatter(x, y, stroke_color=stroke_colors[1], fill_color=colors[1], line_width=int(float(plot.set2.border_width) / 2),
1988
1988
  size=int(float(plot.set2.symbol_size) / 3), z_index=10)
1989
1989
  else:
@@ -133,10 +133,10 @@ def update_handsontable(smp: Sample, data: list, id: str):
133
133
  data = _normalize_data(data, len(samples.SPECTRUM_TABLE_HEADERS), n, 3)
134
134
  smp.ApparentAgeValues = _digitize_data(data)
135
135
  elif id == '7': # 等时线
136
- data = _normalize_data(data, len(samples.ISOCHRON_TABLE_HEADERS), n, 3)
136
+ data = _normalize_data(data, len(samples.ISOCHRON_TABLE_HEADERS), n, 3, 0, smp.IsochronsTable.text_indexes)
137
137
  smp.IsochronValues = _digitize_data(data)
138
138
  elif id == '8': # 总参数
139
- data = _normalize_data(data, len(samples.TOTAL_PARAMS_HEADERS), n, 3)
139
+ data = _normalize_data(data, len(samples.TOTAL_PARAMS_HEADERS), n, 3, 0, smp.TotalParamsTable.text_indexes)
140
140
  data = _digitize_data(data)
141
141
  data[101: 112] = [_strToBool(i) for i in data[101: 112]]
142
142
  smp.TotalParam = data
@@ -232,4 +232,5 @@ def _strToBool(cols):
232
232
  bools_dict = {
233
233
  'true': True, 'false': False, 'True': True, 'False': False, '1': True, '0': False, 'none': False,
234
234
  }
235
+ cols = [int(col) if isinstance(col, float) else col for col in cols]
235
236
  return [bools_dict.get(str(col).lower(), False) for col in cols]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ararpy
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: A project for Ar-Ar geochronology
5
5
  Home-page: https://github.com/wuyangchn/ararpy.git
6
6
  Author: Yang Wu
@@ -16,7 +16,7 @@ long_description = (here / 'README.md').read_text(encoding='utf-8')
16
16
 
17
17
  setuptools.setup(
18
18
  name='ararpy', #
19
- version='0.2.5', # version
19
+ version='0.2.7', # version
20
20
  author='Yang Wu',
21
21
  author_email='wuycug@hotmail.com',
22
22
  description='A project for Ar-Ar geochronology', # short description
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes