ararpy 0.1.33__tar.gz → 0.1.34__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 (81) hide show
  1. {ararpy-0.1.33 → ararpy-0.1.34}/PKG-INFO +1 -1
  2. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/__init__.py +2 -2
  3. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/plot.py +1 -2
  4. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/files/calc_file.py +6 -6
  5. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/plots.py +3 -3
  6. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy.egg-info/PKG-INFO +1 -1
  7. {ararpy-0.1.33 → ararpy-0.1.34}/setup.py +1 -1
  8. {ararpy-0.1.33 → ararpy-0.1.34}/LICENSE +0 -0
  9. {ararpy-0.1.33 → ararpy-0.1.34}/README.md +0 -0
  10. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/Example - Check arr.py +0 -0
  11. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/Example - Granite Cooling History.py +0 -0
  12. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/Example - Plot temperature calibration.py +0 -0
  13. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/Example - Show MDD results.py +0 -0
  14. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/Example - Show all Kfs age spectra.py +0 -0
  15. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/Example - Show random walk results.py +0 -0
  16. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/Example - Tc calculation.py +0 -0
  17. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/__init__.py +0 -0
  18. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/age.py +0 -0
  19. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/arr.py +0 -0
  20. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/basic.py +0 -0
  21. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/corr.py +0 -0
  22. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/err.py +0 -0
  23. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/histogram.py +0 -0
  24. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/isochron.py +0 -0
  25. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/jvalue.py +0 -0
  26. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/raw_funcs.py +0 -0
  27. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/regression.py +0 -0
  28. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/calc/spectra.py +0 -0
  29. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/022_VU124-M11a.ahd +0 -0
  30. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/20WHA0103.age +0 -0
  31. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/22WHA0078.xls +0 -0
  32. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/22WHA0433.age +0 -0
  33. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/22WHA0433.arr +0 -0
  34. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/22WHA0433.full.xls +0 -0
  35. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/24WHN0001-51-592.XLS +0 -0
  36. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/AHD.input-filter +0 -0
  37. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/ArAr.calc +0 -0
  38. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/ArArCALC.age +0 -0
  39. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/NGX-600 - Copy.TXT +0 -0
  40. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/NGX-600.TXT +0 -0
  41. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/NGX-XLS.input-filter +0 -0
  42. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/Qtegra-exported-xls.input-filter +0 -0
  43. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/S01-239.csv +0 -0
  44. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/WH01.irra +0 -0
  45. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/WHA.pdf +0 -0
  46. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/raw_example.xls +0 -0
  47. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/examples/sample-default.smp +0 -0
  48. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/files/__init__.py +0 -0
  49. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/files/arr_file.py +0 -0
  50. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/files/basic.py +0 -0
  51. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/files/new_file.py +0 -0
  52. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/files/raw_file.py +0 -0
  53. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/files/xls.py +0 -0
  54. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/EXPORT_TO_PDF_DATA_PROPERTIES.py +0 -0
  55. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/__init__.py +0 -0
  56. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/basic.py +0 -0
  57. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/calculation.py +0 -0
  58. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/consts.py +0 -0
  59. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/corr.py +0 -0
  60. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/diffusion_funcs.py +0 -0
  61. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/export.py +0 -0
  62. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/info.py +0 -0
  63. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/initial.py +0 -0
  64. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/json.py +0 -0
  65. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/raw.py +0 -0
  66. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/sample.py +0 -0
  67. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/style.py +0 -0
  68. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/smp/table.py +0 -0
  69. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/test.py +0 -0
  70. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/thermo/__init__.py +0 -0
  71. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/thermo/arrhenius.py +0 -0
  72. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/thermo/atomic_level_random_walk.py +0 -0
  73. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy/thermo/basic.py +0 -0
  74. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy.egg-info/SOURCES.txt +0 -0
  75. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy.egg-info/dependency_links.txt +0 -0
  76. {ararpy-0.1.33 → ararpy-0.1.34}/ararpy.egg-info/top_level.txt +0 -0
  77. {ararpy-0.1.33 → ararpy-0.1.34}/setup.cfg +0 -0
  78. {ararpy-0.1.33 → ararpy-0.1.34}/tests/test.py +0 -0
  79. {ararpy-0.1.33 → ararpy-0.1.34}/tests/test2.py +0 -0
  80. {ararpy-0.1.33 → ararpy-0.1.34}/tests/test_error_correlation.py +0 -0
  81. {ararpy-0.1.33 → ararpy-0.1.34}/tests/test_regression_methods.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ararpy
3
- Version: 0.1.33
3
+ Version: 0.1.34
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.1.33'
19
+ version = '0.1.34'
20
20
  __version__ = version
21
21
  full_version = version
22
- last_update = '2025-10-01'
22
+ last_update = '2025-10-22'
23
23
 
24
24
  """ ArArPy Functions """
25
25
 
@@ -53,9 +53,8 @@ def get_axis_scale(data: list, count=6, increment=None, extra_count=0, min_inter
53
53
  str(decimal.Decimal(int(interval / mag // min_interval) + min_interval) * decimal.Decimal(str(mag))))
54
54
  else:
55
55
  increment = decimal.Decimal(increment)
56
- start = decimal.Decimal(0)
56
+ start = decimal.Decimal(_min) // increment * increment
57
57
  if _min < 0:
58
- start = -increment
59
58
  while start > _min:
60
59
  start -= increment
61
60
  else:
@@ -291,8 +291,8 @@ def open_240(data: pd.DataFrame, logs01: pd.DataFrame, logs02: pd.DataFrame):
291
291
  -999, -999, -999, -999, -999, -999, -999, -999,
292
292
  # 123-130
293
293
  -999, -999, -999, -999, -999, -999, -999, -999,
294
- # 131-135
295
- -999, -999, -999, -999, -999,
294
+ # 131-137
295
+ -999, -999, -999, -999, -999, -999, -999,
296
296
  ]
297
297
 
298
298
  # double transpose to remove keys
@@ -591,9 +591,9 @@ class ArArCalcFile:
591
591
  book_contents = read_calc_file(self.file_path)
592
592
  # create data frames for book values
593
593
  content = pd.DataFrame(book_contents['Data Tables'])
594
- logs01 = pd.DataFrame(book_contents['Logs01'])
595
- logs02 = pd.DataFrame(book_contents['Logs02'])
596
- logs03 = pd.DataFrame(book_contents['Logs03'])
594
+ logs01 = pd.DataFrame(book_contents.get('Logs01', [[]]))
595
+ logs02 = pd.DataFrame(book_contents.get('Logs02', [[]]))
596
+ logs03 = pd.DataFrame(book_contents.get('Logs03', [[]]))
597
597
 
598
598
  start_row = 5
599
599
  sequence_num = int(logs03[2][0])
@@ -613,7 +613,7 @@ class ArArCalcFile:
613
613
  material = data[46][0]
614
614
  analyst = data[48][0]
615
615
  else:
616
- raise ValueError(f'non-supported version: {version}')
616
+ raise ValueError(f'Unsupported version: {version}')
617
617
 
618
618
  # change error type, 2sigma to 1sigma..., relative errors to absolute errors
619
619
  data = change_error_type(data, header)
@@ -247,10 +247,10 @@ def get_isochron_results(data: list, smp: Sample, sequence, figure_type: int = 0
247
247
 
248
248
  if len(sequence) < 3:
249
249
  return iso_res
250
- regression_method = {
251
- "york-2": calc.regression.york2, "olst": calc.regression.olst
252
- }.get(smp.TotalParam[97][min(sequence)].lower(), calc.regression.york2)
253
250
  try:
251
+ regression_method = {
252
+ "york-2": calc.regression.york2, "olst": calc.regression.olst
253
+ }.get(smp.TotalParam[97][min(sequence)].lower(), calc.regression.york2)
254
254
  regression_res = regression_method(*data[:5])
255
255
  except (Exception, BaseException):
256
256
  # print(f"Warning: {traceback.format_exc()}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ararpy
3
- Version: 0.1.33
3
+ Version: 0.1.34
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.1.33', # version
19
+ version='0.1.34', # 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