ararpy 0.1.27__py3-none-any.whl → 0.1.28__py3-none-any.whl
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/smp/export.py +1 -2
- ararpy/smp/initial.py +12 -9
- {ararpy-0.1.27.dist-info → ararpy-0.1.28.dist-info}/METADATA +1 -1
- {ararpy-0.1.27.dist-info → ararpy-0.1.28.dist-info}/RECORD +7 -7
- {ararpy-0.1.27.dist-info → ararpy-0.1.28.dist-info}/WHEEL +0 -0
- {ararpy-0.1.27.dist-info → ararpy-0.1.28.dist-info}/licenses/LICENSE +0 -0
- {ararpy-0.1.27.dist-info → ararpy-0.1.28.dist-info}/top_level.txt +0 -0
ararpy/smp/export.py
CHANGED
|
@@ -310,7 +310,7 @@ def getRectFromSpectra(data):
|
|
|
310
310
|
|
|
311
311
|
"""
|
|
312
312
|
data = np.array(data)
|
|
313
|
-
return list(map(lambda index: [data[index,0], min(data[index,[1,2]]),
|
|
313
|
+
return list(filter(lambda rect: rect[2] != 0 and rect[3] != 0, map(lambda index: [data[index,0], min(data[index,[1,2]]), abs(data[index+1,0] - data[index,0]), abs(data[index,1] - data[index,2])], list(range(len(data) - 1)))))
|
|
314
314
|
|
|
315
315
|
|
|
316
316
|
def _get_additional_text_series(name):
|
|
@@ -364,7 +364,6 @@ def _get_plot_data_age_spectra_series(smp: sample, **options):
|
|
|
364
364
|
plateau_data = np.array(set_data[index])
|
|
365
365
|
# spectra_fill_data = list(map(lambda each: [data[0][each - 1], min(data[1][each], data[2][each]), data[0][each + 1] - data[0][each], sigma * abs(data[1][each] - data[2][each])], selection))
|
|
366
366
|
spectra_fill_data = getRectFromSpectra(plateau_data)
|
|
367
|
-
print(spectra_fill_data)
|
|
368
367
|
series.append({
|
|
369
368
|
'type': 'series.rect', 'id': f'rect-{smp.name()}-{get_random_digits()}', 'name': f'rect-{smp.name()}-{get_random_digits()}',
|
|
370
369
|
'color': ['red', 'blue'][index], 'fill_color': ['red', 'blue'][index], 'line_width': 0, 'line_style': 'none', 'z_index': 9,
|
ararpy/smp/initial.py
CHANGED
|
@@ -302,17 +302,20 @@ def check_version(smp: Sample):
|
|
|
302
302
|
smp.Info.experiment.name = smp.name()
|
|
303
303
|
smp.Info.experiment.step_num = smp.sequence().size
|
|
304
304
|
|
|
305
|
-
# 20250404
|
|
305
|
+
# 20250404: # Normalization for steps with different J values
|
|
306
306
|
doNormalize = True
|
|
307
307
|
v, sv = [], []
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
308
|
+
try:
|
|
309
|
+
if smp.Info.sample.type.lower() == "unknown":
|
|
310
|
+
v, sv = smp.TotalParam[67:69]
|
|
311
|
+
sv = np.multiply(v, sv) / 100
|
|
312
|
+
elif smp.Info.sample.type.lower() == "air":
|
|
313
|
+
v, sv = smp.TotalParam[93:95]
|
|
314
|
+
sv = np.multiply(v, sv) / 100
|
|
315
|
+
elif smp.Info.sample.type.lower() == "standard":
|
|
316
|
+
v, sv = smp.TotalParam[59:61]
|
|
317
|
+
except:
|
|
318
|
+
doNormalize = False
|
|
316
319
|
smp.NormalizeFactor = [
|
|
317
320
|
[1 if v[0] == each or not doNormalize else v[0] / each for each in v],
|
|
318
321
|
[0 if v[0] == v[i] or not doNormalize else err.div((v[0], sv[0]), (v[i], sv[i])) for i in range(len(v))]
|
|
@@ -46,9 +46,9 @@ ararpy/smp/calculation.py,sha256=LCFJWjLVLEKEQ5b7RFUIxsMahEzgLdodW4kCYXV5Z34,291
|
|
|
46
46
|
ararpy/smp/consts.py,sha256=XIdjdz8cYxspG2jMnoItdlUsxr3hKbNFJjMZJh1bpzw,393
|
|
47
47
|
ararpy/smp/corr.py,sha256=TzH7rymToJP0RCI0pQm-SrqnwAZ58HJbxahE8chv2wQ,26511
|
|
48
48
|
ararpy/smp/diffusion_funcs.py,sha256=4-PMMIZWzjk2HOYYWNgSp4GmApygp1MmOxJ2g3xrqWc,175049
|
|
49
|
-
ararpy/smp/export.py,sha256=
|
|
49
|
+
ararpy/smp/export.py,sha256=hgbsbE70QoAyQSDZ2JJgOkltL6D9YMms_5MAuxAHq3U,116221
|
|
50
50
|
ararpy/smp/info.py,sha256=iKUELm-BuUduDlJKC1d8tKKNHbwwbNmhUg2pi6bcBvA,489
|
|
51
|
-
ararpy/smp/initial.py,sha256=
|
|
51
|
+
ararpy/smp/initial.py,sha256=Wfjn9gyJyMSCRjPNIUhxDBw3b3_f-9Ui_iHAYkjFxWg,17332
|
|
52
52
|
ararpy/smp/json.py,sha256=BTZCjVN0aj9epc700nwkYEYMKN2lHBYo-pLmtnz5oHY,2300
|
|
53
53
|
ararpy/smp/plots.py,sha256=rF0vrFu9dMt2Eu1EHiDfDRC9232M6dH0Unc_3qNDxLY,33579
|
|
54
54
|
ararpy/smp/raw.py,sha256=51n-rrbW2FqeZHQyevuG7iObPLGvIBzTe414QDVM1FE,6523
|
|
@@ -59,8 +59,8 @@ ararpy/thermo/__init__.py,sha256=6VBuqTRFl403PVqOuMkVrut0nKaQsAosBmfW91X1dMg,263
|
|
|
59
59
|
ararpy/thermo/arrhenius.py,sha256=Ass1ichHfqIAtpv8eLlgrUc1UOb3Urh1qzr1E3gLB4U,233
|
|
60
60
|
ararpy/thermo/atomic_level_random_walk.py,sha256=Q97zfe2h2RaxADkoBAqd0uEiP16BFOajrTmXHMkL2EQ,25502
|
|
61
61
|
ararpy/thermo/basic.py,sha256=nBGHI9uK7VdJwThwBIOcKAzdnYqPyQseFoY6s4zKizk,11504
|
|
62
|
-
ararpy-0.1.
|
|
63
|
-
ararpy-0.1.
|
|
64
|
-
ararpy-0.1.
|
|
65
|
-
ararpy-0.1.
|
|
66
|
-
ararpy-0.1.
|
|
62
|
+
ararpy-0.1.28.dist-info/licenses/LICENSE,sha256=cvG5t_C1qY_zUyJI7sNOa7gCArdngNPaOrfujl2LYuc,1085
|
|
63
|
+
ararpy-0.1.28.dist-info/METADATA,sha256=DWqHjjrlOGBYz0bastBt3JX2UIxLvCp5HmvAu-MELRE,24516
|
|
64
|
+
ararpy-0.1.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
65
|
+
ararpy-0.1.28.dist-info/top_level.txt,sha256=9iTpsPCYuRYq09yQTk9d2lqB8JtTEOmbN-IcGB-K3vY,7
|
|
66
|
+
ararpy-0.1.28.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|