xedocs 0.2.39__py3-none-any.whl → 0.2.41__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.
xedocs/__init__.py CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  __author__ = """Yossi Mosbacher"""
4
4
  __email__ = "joe.mosbacher@gmail.com"
5
- __version__ = "0.2.39"
5
+ __version__ = "0.2.41"
6
6
 
7
7
 
8
8
  import logging
@@ -22,3 +22,5 @@ DIFFUSED_SOURCE = Literal["rn-220", "rn-222", "kr-83m", "ar-37",]
22
22
  DETECTOR = Literal["tpc", "neutron_veto", "muon_veto", "tpc_he"]
23
23
 
24
24
  PARTITION = Literal["all_tpc", "ab", "cd"]
25
+
26
+ SIGNAL = Literal["s1", "s2"]
@@ -26,3 +26,4 @@ from .z_bias import *
26
26
  from .cs2_aft_corrections import *
27
27
  from .se_gain_partition import *
28
28
  from .test_correction import *
29
+ from .peak_reconstruction_bias import *
@@ -0,0 +1,21 @@
1
+ """
2
+ Peak Reconstruction Bias
3
+
4
+ Atul Prajapati, Carlo Fuselli, Chiara Di Donato
5
+
6
+ https://xe1t-wiki.lngs.infn.it/doku.php?id=xenon:xennont:peak_reconstruction_bias_sr2
7
+ Description: We know that there are multiple effects that introduce a bias in the reconstructed area. We estimate this bias with simulations produced with fuse. We compare the raw area that is the input, with the reconstrcuted area. We observe that effects like thresholds, afterpulses (AP) and noise introduce an energy dependent bias of the order of 2-3%. We want to provide a correction for the S1 and S2 areas to take these effects into account. Note that photo-ionisation also induces a similar bias, but this topic is not addressed in this notes (for now).
8
+
9
+ """
10
+ import rframe
11
+
12
+ from ..base_references import BaseResourceReference
13
+ from ...constants import SIGNAL
14
+
15
+ class PeakReconstructionBias(BaseResourceReference):
16
+ _ALIAS = "peak_reconstruction_bias"
17
+ fmt = "json"
18
+
19
+ signal: SIGNAL = rframe.Index()
20
+
21
+ value: str
xedocs/utils.py CHANGED
@@ -144,18 +144,18 @@ class LazyFileAccessor(DataAccessor):
144
144
  original_protocol = original_protocol
145
145
 
146
146
  # Debug prints
147
- print(f"\n[DEBUG]")
148
- print(f"Processing path: {path}")
149
- print(f"fs.protocol: {fs.protocol}")
150
- print(f"Original protocol: {original_protocol}")
151
- print(f"Glob pattern: {glob_patttern}")
152
- print(f"File paths: {fpaths}")
147
+ # print(f"\n[DEBUG]")
148
+ # print(f"Processing path: {path}")
149
+ # print(f"fs.protocol: {fs.protocol}")
150
+ # print(f"Original protocol: {original_protocol}")
151
+ # print(f"Glob pattern: {glob_patttern}")
152
+ # print(f"File paths: {fpaths}")
153
153
 
154
154
  pattern = path.replace(f"{original_protocol}://", "")
155
155
  pattern = parse.compile(self.glob_to_format(pattern))
156
156
 
157
157
  # More debug prints
158
- print(f"Parse pattern: {pattern}")
158
+ # print(f"Parse pattern: {pattern}")
159
159
 
160
160
  loaded = set(ignore_paths)
161
161
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: xedocs
3
- Version: 0.2.39
3
+ Version: 0.2.41
4
4
  Summary: Top-level package for xedocs.
5
5
  Author: Yossi Mosbacher
6
6
  Author-email: joe.mosbacher@gmail.com
@@ -1,4 +1,4 @@
1
- xedocs/__init__.py,sha256=wH2b2ynVVq-ZQwqENUSAJhPA_Z7fD8mBQ_9woNgkbOI,1054
1
+ xedocs/__init__.py,sha256=cYvPaTN6Pj6Vj91XCqzYowNrFRKtGN1tg9rseqghN9s,1054
2
2
  xedocs/_settings.py,sha256=_Fjj5XJBHBrN6N1Dqs_JzovbEcF6--5BGnAggK1ksck,4199
3
3
  xedocs/_straxen_plugin.py,sha256=bxKWkVDNCS0Mah_GGNEvE8TCk-ibrY8xJbO0UMvfajM,1904
4
4
  xedocs/cli.py,sha256=1oZXa4Iqs-ANRTABZP8K6e3oSIatKnJNhQ1DZ4rsNrc,3493
@@ -25,13 +25,13 @@ xedocs/schemas/calibrations/diffused_calibration.py,sha256=H5qkCwTiGlQckSMMDRd8T
25
25
  xedocs/schemas/calibrations/ibelt_calibrations.py,sha256=s84DiYnXCJPoE4xfKtS5zisethDjJ_ks5vSZj9PUhsQ,206
26
26
  xedocs/schemas/calibrations/sources.py,sha256=uRSJORCH1oy3SB20tOqnJ0kQflsl8P4B-QzZiA7A5RQ,650
27
27
  xedocs/schemas/calibrations/utube_calibrations.py,sha256=DK73zkI5a73N5wBoO1dotdl7JyTBw7ZcQhqvXnnLbds,345
28
- xedocs/schemas/constants.py,sha256=vVDXYoD7b_347JEAhuZLcNDI9G0CyWSOr63HMHZIJz4,393
28
+ xedocs/schemas/constants.py,sha256=6hJ_JoqCiAYSeXKDYdYJFjAfmKKu18pvlD3NfOywIsY,423
29
29
  xedocs/schemas/context_config.py,sha256=xqIqGLbgHnPlelG5oCO29B5cQh35XIz5LhYlxpdJWyA,180
30
30
  xedocs/schemas/context_lineage.py,sha256=B3zFt0TpQ3wQuG5H-rRMju0IRQkkg7sTD2SuV5Ngut4,568
31
31
  xedocs/schemas/corrections/__init__.py,sha256=QpQBY_UNdiodc_zPbE1O6wR1SWIaAnyNze7acYj2MwE,94
32
32
  xedocs/schemas/corrections/base_corrections.py,sha256=ryH16ypLec9Pp2AXI1RImeaZOfxOih-1blbnKedy_Us,11179
33
33
  xedocs/schemas/corrections/base_references.py,sha256=xjeiouDYPnj4PHOHwTKhbjXPHC3-Sf-foQOu_fXlm8o,3492
34
- xedocs/schemas/corrections/implementations/__init__.py,sha256=ard_Slp-lPwchOdFbqdo4ItUSWfePtCmbosgpIGYaDY,852
34
+ xedocs/schemas/corrections/implementations/__init__.py,sha256=3By14vNcTVBqJ3-OLNKOxzaHUfM5n-XCnqleqstcZcg,892
35
35
  xedocs/schemas/corrections/implementations/avg_se_gain.py,sha256=cL-pioHMxh0XmkcfgHS48v3ZbwJdu4bIJlV_3Z40cm4,492
36
36
  xedocs/schemas/corrections/implementations/baseline_samples_nv.py,sha256=Rdkst_aiFPEXbcEXKuOVroNZkHqUncOh1Q5neR4tdHw,472
37
37
  xedocs/schemas/corrections/implementations/bayes_model.py,sha256=GatQ0DxzNWcveckun0vRfQ76RECAIqEO6eZgBxwlowA,235
@@ -46,6 +46,7 @@ xedocs/schemas/corrections/implementations/global_versions.py,sha256=0rfaRGQJqep
46
46
  xedocs/schemas/corrections/implementations/hit_thresholds.py,sha256=77Mp_Ugvk7Nge6544Rv8JfGZ5niKbIDQr_beiMj4qpw,725
47
47
  xedocs/schemas/corrections/implementations/hotspot_veto_cut.py,sha256=eBfDLeJteA5jyV7CcEdD2uDLgOAxyQC11Xm4rtS4kLg,404
48
48
  xedocs/schemas/corrections/implementations/lone_hits.py,sha256=HYspFe5Am-RwTmznpeszJTtdH16vEy6S0fCLtT0NIlQ,1159
49
+ xedocs/schemas/corrections/implementations/peak_reconstruction_bias.py,sha256=_Anmm8B9-vMwO132wYtoOgaxlwflJ9AcEKMai_YjosU,996
49
50
  xedocs/schemas/corrections/implementations/photoionization_strength.py,sha256=ONllBdag6kgKEXdyuP6fnFH-BICWQUNgNu5HNXSyXY0,288
50
51
  xedocs/schemas/corrections/implementations/pmt_area_to_pe.py,sha256=270jqtXqkzx_5AnqMRgdYW2Ba8EUYPJZ6ymMr7eplxI,1109
51
52
  xedocs/schemas/corrections/implementations/position_reconstruction.py,sha256=parz70dnZNFxk4vLxU-x4z9zacwAXJmItCwys_cV61Y,1521
@@ -78,12 +79,12 @@ xedocs/schemas/pmt_data/pmt_installs.py,sha256=zVz04RbVvS9DpnM6kp8Ql14g1aOtRsqWA
78
79
  xedocs/schemas/pmt_data/pmts.py,sha256=VTDpDPz0HdTlfkPypN6CFjmuxEUNJj0-cC6uqRRuXZs,271
79
80
  xedocs/schemas/pmt_data/voltage_changes.py,sha256=ieTNCSoE4A3VHrWZ3Hk5HN_q5Nrwu04jwqji7bgbJto,428
80
81
  xedocs/schemas/pmt_data/voltage_settings.py,sha256=L2cScDQNviWgAlWvMRjnIEgsP0urVg0gYWAxK3FrFPc,428
81
- xedocs/utils.py,sha256=KYdyye-avgteZiqwDgIB4fx4P3Kg6scENbxoD7MLcXw,9049
82
+ xedocs/utils.py,sha256=e0Y57LrjbQ7qbWChyQgX2QV5TJZ276u8Ne7Clzg7Hl4,9063
82
83
  xedocs/widgets.py,sha256=l2pgQaWqycZQF5pF6eEeLuHdqjVBkJ8OB-o-mcivMl4,28810
83
84
  xedocs/xedocs.py,sha256=Dk-ld5X6qB6hrp40svDkJX_9K0MKkZTxal-fLVQpIz8,6949
84
85
  xedocs/xenon_config.py,sha256=QQlg2icofZWq_UAh5kDSuViai0uP_3ClozNNv6mpx3s,2674
85
- xedocs-0.2.39.dist-info/AUTHORS.rst,sha256=7XNtvXT_irnC5nzau-Al_VVmmhk8EgW811pPs8OXgBo,164
86
- xedocs-0.2.39.dist-info/METADATA,sha256=rS02k5-w_QZz3FPZTg5jJaO0N0gTF8kXZJYj8TfG7HU,5827
87
- xedocs-0.2.39.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
88
- xedocs-0.2.39.dist-info/entry_points.txt,sha256=AfKuejqaCB-nA4rYbuWtMcR0d-t4nNzrM3s8V_e7YSk,92
89
- xedocs-0.2.39.dist-info/RECORD,,
86
+ xedocs-0.2.41.dist-info/AUTHORS.rst,sha256=7XNtvXT_irnC5nzau-Al_VVmmhk8EgW811pPs8OXgBo,164
87
+ xedocs-0.2.41.dist-info/METADATA,sha256=sZebBVea7lasuOEJVbVwBnQtZjW9VsZtYGL4G9dX-sA,5827
88
+ xedocs-0.2.41.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
89
+ xedocs-0.2.41.dist-info/entry_points.txt,sha256=AfKuejqaCB-nA4rYbuWtMcR0d-t4nNzrM3s8V_e7YSk,92
90
+ xedocs-0.2.41.dist-info/RECORD,,