ararpy 0.2.4__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.
- {ararpy-0.2.4 → ararpy-0.2.7}/PKG-INFO +1 -1
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/__init__.py +2 -2
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/age.py +1 -1
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/files/arr_file.py +2 -2
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/files/raw_file.py +37 -34
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/basic.py +13 -1
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/export.py +2 -2
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/initial.py +8 -4
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/plots.py +1 -1
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/sample.py +1 -1
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/table.py +3 -2
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy.egg-info/PKG-INFO +1 -1
- {ararpy-0.2.4 → ararpy-0.2.7}/setup.py +1 -1
- {ararpy-0.2.4 → ararpy-0.2.7}/LICENSE +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/README.md +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/Example - Check arr.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/Example - Granite Cooling History.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/Example - Plot temperature calibration.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/Example - Show MDD results.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/Example - Show all Kfs age spectra.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/Example - Show random walk results.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/Example - Tc calculation.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/__init__.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/arr.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/basic.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/corr.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/err.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/histogram.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/isochron.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/jvalue.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/plot.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/raw_funcs.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/regression.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/calc/spectra.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/022_VU124-M11a.ahd +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/20WHA0103.age +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/22WHA0078.xls +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/22WHA0433.age +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/22WHA0433.arr +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/22WHA0433.full.xls +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/24WHN0001-51-592.XLS +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/AHD.input-filter +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/ArAr.calc +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/ArArCALC.age +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/NGX-600 - Copy.TXT +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/NGX-600.TXT +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/NGX-XLS.input-filter +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/Qtegra-exported-xls.input-filter +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/S01-239.csv +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/WH01.irra +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/WHA.pdf +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/raw_example.xls +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/examples/sample-default.smp +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/files/__init__.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/files/basic.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/files/calc_file.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/files/new_file.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/files/xls.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/EXPORT_TO_PDF_DATA_PROPERTIES.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/__init__.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/calculation.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/consts.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/corr.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/diffusion_funcs.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/info.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/json.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/raw.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/smp/style.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/test.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/thermo/__init__.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/thermo/arrhenius.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/thermo/atomic_level_random_walk.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy/thermo/basic.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy.egg-info/SOURCES.txt +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy.egg-info/dependency_links.txt +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy.egg-info/requires.txt +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/ararpy.egg-info/top_level.txt +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/setup.cfg +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/tests/test.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/tests/test2.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/tests/test_error_correlation.py +0 -0
- {ararpy-0.2.4 → ararpy-0.2.7}/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.7'
|
|
20
20
|
__version__ = version
|
|
21
21
|
full_version = version
|
|
22
|
-
last_update = '2026-
|
|
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
|
|
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.")
|
|
@@ -27,12 +27,12 @@ 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:
|
|
34
34
|
# # save serialized json data to a readable text
|
|
35
35
|
# f.write(basic_funcs.getJsonDumps(sample))
|
|
36
|
-
return f"{sample.Info.
|
|
36
|
+
return f"{sample.Info.experiment.name}.arr"
|
|
37
37
|
|
|
38
38
|
|
|
@@ -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
|
|
@@ -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({"
|
|
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
|
|
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
|
|
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:
|
|
@@ -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
|
|
|
@@ -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]
|
|
@@ -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.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
|
|
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
|