ararpy 0.1.29__tar.gz → 0.1.30__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.1.29 → ararpy-0.1.30}/PKG-INFO +1 -1
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/raw_funcs.py +4 -1
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/files/raw_file.py +22 -1
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy.egg-info/PKG-INFO +1 -1
- {ararpy-0.1.29 → ararpy-0.1.30}/setup.py +1 -1
- {ararpy-0.1.29 → ararpy-0.1.30}/LICENSE +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/README.md +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/__init__.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/__init__.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/age.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/arr.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/basic.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/corr.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/err.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/histogram.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/isochron.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/jvalue.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/plot.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/regression.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/calc/spectra.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/022_VU124-M11a.ahd +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/20WHA0103.age +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/22WHA0078.xls +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/22WHA0433.age +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/22WHA0433.arr +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/22WHA0433.full.xls +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/24WHN0001-51-592.XLS +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/AHD.input-filter +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/ArAr.calc +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/ArArCALC.age +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/NGX-600 - Copy.TXT +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/NGX-600.TXT +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/NGX-XLS.input-filter +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/Qtegra-exported-xls.input-filter +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/S01-239.csv +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/WH01.irra +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/WHA.pdf +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/raw_example.xls +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/examples/sample-default.smp +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/files/__init__.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/files/arr_file.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/files/basic.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/files/calc_file.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/files/new_file.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/files/xls.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/EXPORT_TO_PDF_DATA_PROPERTIES.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/__init__.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/basic.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/calculation.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/consts.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/corr.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/diffusion_funcs.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/export.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/info.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/initial.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/json.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/plots.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/raw.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/sample.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/style.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/smp/table.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/test.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/thermo/__init__.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/thermo/arrhenius.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/thermo/atomic_level_random_walk.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy/thermo/basic.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy.egg-info/SOURCES.txt +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy.egg-info/dependency_links.txt +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/ararpy.egg-info/top_level.txt +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/setup.cfg +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/tests/test.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/tests/test2.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/tests/test_error_correlation.py +0 -0
- {ararpy-0.1.29 → ararpy-0.1.30}/tests/test_regression_methods.py +0 -0
|
@@ -29,6 +29,9 @@ def get_raw_data_regression_results(points_data, unselected: list = None):
|
|
|
29
29
|
-------
|
|
30
30
|
|
|
31
31
|
"""
|
|
32
|
+
def power(a0, a1):
|
|
33
|
+
# return regression.power(a0, a1)
|
|
34
|
+
raise ValueError("Deprecated regression")
|
|
32
35
|
# if unselected is None:
|
|
33
36
|
# unselected = []
|
|
34
37
|
# linesData = []
|
|
@@ -36,7 +39,7 @@ def get_raw_data_regression_results(points_data, unselected: list = None):
|
|
|
36
39
|
# un_x = transpose(unselected)[0] if is_twoD(unselected) else []
|
|
37
40
|
reg_handler = [
|
|
38
41
|
regression.linest, regression.quadratic, regression.exponential,
|
|
39
|
-
|
|
42
|
+
power, regression.average]
|
|
40
43
|
# size = 50
|
|
41
44
|
# lines_x = [(max(x + un_x) - 0) / size * i for i in range(size + 1)]
|
|
42
45
|
for i in range(len(reg_handler)):
|
|
@@ -22,6 +22,7 @@ from parse import parse as string_parser
|
|
|
22
22
|
import dateutil.parser as datetime_parser
|
|
23
23
|
from ..calc.arr import get_item
|
|
24
24
|
from ..calc.basic import utc_dt
|
|
25
|
+
from ..smp.sample import RawData
|
|
25
26
|
|
|
26
27
|
""" Open raw data file """
|
|
27
28
|
|
|
@@ -211,8 +212,28 @@ def open_raw_xls(file_path, input_filter: List[Union[str, int]]):
|
|
|
211
212
|
|
|
212
213
|
|
|
213
214
|
def open_raw_seq(file_path, input_filter=None):
|
|
215
|
+
|
|
216
|
+
class RenameUnpickler(pickle.Unpickler):
|
|
217
|
+
def find_class(self, module: str, name: str):
|
|
218
|
+
MODULE = RawData().__module__
|
|
219
|
+
renamed_module = module
|
|
220
|
+
if '.sample' in module and module != MODULE:
|
|
221
|
+
renamed_module = MODULE
|
|
222
|
+
try:
|
|
223
|
+
return super(RenameUnpickler, self).find_class(renamed_module, name)
|
|
224
|
+
except AttributeError:
|
|
225
|
+
return super(RenameUnpickler, self).find_class(renamed_module, 'ArArBasic')
|
|
226
|
+
|
|
227
|
+
def renamed_load(file_obj):
|
|
228
|
+
return RenameUnpickler(file_obj).load()
|
|
229
|
+
|
|
214
230
|
with open(file_path, 'rb') as f:
|
|
215
|
-
sequences =
|
|
231
|
+
sequences = renamed_load(f)
|
|
232
|
+
|
|
233
|
+
# with open(file_path, 'rb') as f:
|
|
234
|
+
# sequences = pickle.load(f)
|
|
235
|
+
# print(sequences[0].__module__)
|
|
236
|
+
|
|
216
237
|
name_list = []
|
|
217
238
|
for seq in sequences:
|
|
218
239
|
while seq.name in name_list:
|
|
@@ -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.
|
|
19
|
+
version='0.1.30', # 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
|