ararpy 0.2.4__tar.gz → 0.2.5__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.
- {ararpy-0.2.4 → ararpy-0.2.5}/PKG-INFO +1 -1
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/__init__.py +2 -2
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/files/arr_file.py +1 -1
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/files/raw_file.py +37 -34
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/initial.py +8 -4
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/plots.py +1 -1
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/sample.py +1 -1
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy.egg-info/PKG-INFO +1 -1
- {ararpy-0.2.4 → ararpy-0.2.5}/setup.py +1 -1
- {ararpy-0.2.4 → ararpy-0.2.5}/LICENSE +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/README.md +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/Example - Check arr.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/Example - Granite Cooling History.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/Example - Plot temperature calibration.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/Example - Show MDD results.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/Example - Show all Kfs age spectra.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/Example - Show random walk results.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/Example - Tc calculation.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/__init__.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/age.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/arr.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/basic.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/corr.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/err.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/histogram.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/isochron.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/jvalue.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/plot.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/raw_funcs.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/regression.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/calc/spectra.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/022_VU124-M11a.ahd +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/20WHA0103.age +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/22WHA0078.xls +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/22WHA0433.age +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/22WHA0433.arr +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/22WHA0433.full.xls +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/24WHN0001-51-592.XLS +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/AHD.input-filter +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/ArAr.calc +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/ArArCALC.age +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/NGX-600 - Copy.TXT +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/NGX-600.TXT +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/NGX-XLS.input-filter +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/Qtegra-exported-xls.input-filter +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/S01-239.csv +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/WH01.irra +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/WHA.pdf +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/raw_example.xls +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/examples/sample-default.smp +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/files/__init__.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/files/basic.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/files/calc_file.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/files/new_file.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/files/xls.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/EXPORT_TO_PDF_DATA_PROPERTIES.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/__init__.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/basic.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/calculation.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/consts.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/corr.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/diffusion_funcs.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/export.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/info.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/json.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/raw.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/style.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/smp/table.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/test.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/thermo/__init__.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/thermo/arrhenius.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/thermo/atomic_level_random_walk.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy/thermo/basic.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy.egg-info/SOURCES.txt +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy.egg-info/dependency_links.txt +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy.egg-info/requires.txt +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/ararpy.egg-info/top_level.txt +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/setup.cfg +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/tests/test.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/tests/test2.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/tests/test_error_correlation.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.5}/tests/test_regression_methods.py +0 -0
|
@@ -16,10 +16,10 @@ from . import calc, smp, files, thermo, test
|
|
|
16
16
|
""" Information """
|
|
17
17
|
|
|
18
18
|
name = 'ararpy'
|
|
19
|
-
version = '0.2.
|
|
19
|
+
version = '0.2.5'
|
|
20
20
|
__version__ = version
|
|
21
21
|
full_version = version
|
|
22
|
-
last_update = '2026-01-
|
|
22
|
+
last_update = '2026-01-08'
|
|
23
23
|
|
|
24
24
|
""" ArArPy Functions """
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ def save(file_path, sample):
|
|
|
27
27
|
str, file name
|
|
28
28
|
"""
|
|
29
29
|
if not file_path.endswith(".arr"):
|
|
30
|
-
file_path = os.path.join(file_path, f"{sample.Info.
|
|
30
|
+
file_path = os.path.join(file_path, f"{sample.Info.experiment.name}.arr")
|
|
31
31
|
with open(file_path, 'wb') as f:
|
|
32
32
|
f.write(pickle.dumps(sample))
|
|
33
33
|
# with open(file_path, 'w') as f:
|
|
@@ -411,39 +411,42 @@ def get_sample_info(file_contents: list, index_list: list, default="", base: Uni
|
|
|
411
411
|
"""
|
|
412
412
|
sample_info = DEFAULT_SAMPLE_INFO.copy()
|
|
413
413
|
sample_info.update({
|
|
414
|
-
"ExpName": get_item(file_contents, index_list[0:3], default=default, base=base)
|
|
415
|
-
"StepName": get_item(file_contents, index_list[3:6], default=default, base=base)
|
|
416
|
-
"StepType": get_item(file_contents, index_list[6:9], default=default, base=base)
|
|
417
|
-
"StepLabel": get_item(file_contents, index_list[9:12], default=default, base=base)
|
|
418
|
-
"ZeroYear": get_item(file_contents, index_list[12:15], default=default, base=base)
|
|
419
|
-
"ZeroHour": get_item(file_contents, index_list[15:18], default=default, base=base)
|
|
420
|
-
"ZeroMon": get_item(file_contents, index_list[18:21], default=default, base=base)
|
|
421
|
-
"ZeroMin": get_item(file_contents, index_list[21:24], default=default, base=base)
|
|
422
|
-
"ZeroDay": get_item(file_contents, index_list[24:27], default=default, base=base)
|
|
423
|
-
"ZeroSec": get_item(file_contents, index_list[27:30], default=default, base=base)
|
|
424
|
-
"SmpName": get_item(file_contents, index_list[30:33], default=default, base=base)
|
|
425
|
-
"SmpLoc": get_item(file_contents, index_list[33:36], default=default, base=base)
|
|
426
|
-
"SmpMatr": get_item(file_contents, index_list[36:39], default=default, base=base)
|
|
427
|
-
"ExpType": get_item(file_contents, index_list[39:42], default=default, base=base)
|
|
428
|
-
"SmpWeight": get_item(file_contents, index_list[42:45], default=default, base=base)
|
|
429
|
-
"Stepunit": get_item(file_contents, index_list[45:48], default=default, base=base)
|
|
430
|
-
"HeatingTime": get_item(file_contents, index_list[48:51], default=default, base=base)
|
|
431
|
-
"InstrName": get_item(file_contents, index_list[51:54], default=default, base=base)
|
|
432
|
-
"Researcher": get_item(file_contents, index_list[54:57], default=default, base=base)
|
|
433
|
-
"Analyst": get_item(file_contents, index_list[57:60], default=default, base=base)
|
|
434
|
-
"Lab": get_item(file_contents, index_list[60:63], default=default, base=base)
|
|
435
|
-
"Jv": get_item(file_contents, index_list[63:66], default=default, base=base)
|
|
436
|
-
"Jsig": get_item(file_contents, index_list[66:69], default=default, base=base)
|
|
437
|
-
"MDF": get_item(file_contents, index_list[69:72], default=default, base=base)
|
|
438
|
-
"MDFSig": get_item(file_contents, index_list[72:75], default=default, base=base)
|
|
439
|
-
"CalcName": get_item(file_contents, index_list[75:78], default=default, base=base)
|
|
440
|
-
"IrraName": get_item(file_contents, index_list[78:81], default=default, base=base)
|
|
441
|
-
"IrraLabel": get_item(file_contents, index_list[81:84], default=default, base=base)
|
|
442
|
-
"IrraPosH": get_item(file_contents, index_list[84:87], default=default, base=base)
|
|
443
|
-
"IrraPosX": get_item(file_contents, index_list[87:90], default=default, base=base)
|
|
444
|
-
"IrraPosY": get_item(file_contents, index_list[90:93], default=default, base=base)
|
|
445
|
-
"StdName": get_item(file_contents, index_list[93:96], default=default, base=base)
|
|
446
|
-
"StdAge": get_item(file_contents, index_list[96:99], default=default, base=base)
|
|
447
|
-
"StdAgeSig": get_item(file_contents, index_list[99:102], default=default, base=base)
|
|
414
|
+
"ExpName": get_item(file_contents, index_list[0:3], default=default, base=base),
|
|
415
|
+
"StepName": get_item(file_contents, index_list[3:6], default=default, base=base),
|
|
416
|
+
"StepType": get_item(file_contents, index_list[6:9], default=default, base=base),
|
|
417
|
+
"StepLabel": get_item(file_contents, index_list[9:12], default=default, base=base),
|
|
418
|
+
"ZeroYear": get_item(file_contents, index_list[12:15], default=default, base=base),
|
|
419
|
+
"ZeroHour": get_item(file_contents, index_list[15:18], default=default, base=base),
|
|
420
|
+
"ZeroMon": get_item(file_contents, index_list[18:21], default=default, base=base),
|
|
421
|
+
"ZeroMin": get_item(file_contents, index_list[21:24], default=default, base=base),
|
|
422
|
+
"ZeroDay": get_item(file_contents, index_list[24:27], default=default, base=base),
|
|
423
|
+
"ZeroSec": get_item(file_contents, index_list[27:30], default=default, base=base),
|
|
424
|
+
"SmpName": get_item(file_contents, index_list[30:33], default=default, base=base),
|
|
425
|
+
"SmpLoc": get_item(file_contents, index_list[33:36], default=default, base=base),
|
|
426
|
+
"SmpMatr": get_item(file_contents, index_list[36:39], default=default, base=base),
|
|
427
|
+
"ExpType": get_item(file_contents, index_list[39:42], default=default, base=base),
|
|
428
|
+
"SmpWeight": get_item(file_contents, index_list[42:45], default=default, base=base),
|
|
429
|
+
"Stepunit": get_item(file_contents, index_list[45:48], default=default, base=base),
|
|
430
|
+
"HeatingTime": get_item(file_contents, index_list[48:51], default=default, base=base),
|
|
431
|
+
"InstrName": get_item(file_contents, index_list[51:54], default=default, base=base),
|
|
432
|
+
"Researcher": get_item(file_contents, index_list[54:57], default=default, base=base),
|
|
433
|
+
"Analyst": get_item(file_contents, index_list[57:60], default=default, base=base),
|
|
434
|
+
"Lab": get_item(file_contents, index_list[60:63], default=default, base=base),
|
|
435
|
+
"Jv": get_item(file_contents, index_list[63:66], default=default, base=base),
|
|
436
|
+
"Jsig": get_item(file_contents, index_list[66:69], default=default, base=base),
|
|
437
|
+
"MDF": get_item(file_contents, index_list[69:72], default=default, base=base),
|
|
438
|
+
"MDFSig": get_item(file_contents, index_list[72:75], default=default, base=base),
|
|
439
|
+
"CalcName": get_item(file_contents, index_list[75:78], default=default, base=base),
|
|
440
|
+
"IrraName": get_item(file_contents, index_list[78:81], default=default, base=base),
|
|
441
|
+
"IrraLabel": get_item(file_contents, index_list[81:84], default=default, base=base),
|
|
442
|
+
"IrraPosH": get_item(file_contents, index_list[84:87], default=default, base=base),
|
|
443
|
+
"IrraPosX": get_item(file_contents, index_list[87:90], default=default, base=base),
|
|
444
|
+
"IrraPosY": get_item(file_contents, index_list[90:93], default=default, base=base),
|
|
445
|
+
"StdName": get_item(file_contents, index_list[93:96], default=default, base=base),
|
|
446
|
+
"StdAge": get_item(file_contents, index_list[96:99], default=default, base=base),
|
|
447
|
+
"StdAgeSig": get_item(file_contents, index_list[99:102], default=default, base=base),
|
|
448
448
|
})
|
|
449
|
+
for key, val in sample_info.items():
|
|
450
|
+
if isinstance(val, str):
|
|
451
|
+
sample_info[key] = val.strip()
|
|
449
452
|
return sample_info
|
|
@@ -300,14 +300,18 @@ def check_version(smp: Sample):
|
|
|
300
300
|
-------
|
|
301
301
|
|
|
302
302
|
"""
|
|
303
|
-
if smp.version != samples.VERSION:
|
|
304
|
-
std = initial(Sample())
|
|
305
|
-
basic.get_merged_smp(smp, std)
|
|
306
303
|
|
|
307
304
|
try:
|
|
308
305
|
version = int(smp.version)
|
|
309
306
|
except ValueError:
|
|
310
307
|
return smp
|
|
308
|
+
except AttributeError:
|
|
309
|
+
smp.version = "20240701"
|
|
310
|
+
return check_version(smp)
|
|
311
|
+
|
|
312
|
+
if smp.version != samples.VERSION:
|
|
313
|
+
std = initial(Sample())
|
|
314
|
+
basic.get_merged_smp(smp, std)
|
|
311
315
|
|
|
312
316
|
# 20250328: # Experiment info
|
|
313
317
|
smp.Info.experiment.name = smp.name()
|
|
@@ -328,7 +332,7 @@ def check_version(smp: Sample):
|
|
|
328
332
|
|
|
329
333
|
# 20250404: # Normalization for steps with different J values
|
|
330
334
|
# always check
|
|
331
|
-
if version <
|
|
335
|
+
if version < 99990101:
|
|
332
336
|
doNormalize = True
|
|
333
337
|
v, sv = [], []
|
|
334
338
|
try:
|
|
@@ -129,7 +129,7 @@ def get_iso_init(sample: Sample, figure: Plot):
|
|
|
129
129
|
if figure.id != 'figure_7':
|
|
130
130
|
for point in calc.arr.transpose(data[:5]):
|
|
131
131
|
if '' not in point and None not in point:
|
|
132
|
-
ellipse_data.append(calc.isochron.get_ellipse(*point))
|
|
132
|
+
ellipse_data.append(calc.isochron.get_ellipse(*point, plt_sfactor=sample.Info.preference.confidence_level))
|
|
133
133
|
return data, ellipse_data
|
|
134
134
|
|
|
135
135
|
|
|
@@ -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.
|
|
19
|
+
version='0.2.5', # 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
|
|
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
|