reboost 0.5.0__tar.gz → 0.5.1__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.
- {reboost-0.5.0 → reboost-0.5.1}/PKG-INFO +1 -1
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/_version.py +2 -2
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/build_hit.py +1 -1
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/PKG-INFO +1 -1
- {reboost-0.5.0 → reboost-0.5.1}/tests/hit/test_build_hit.py +21 -0
- {reboost-0.5.0 → reboost-0.5.1}/LICENSE +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/README.md +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/pyproject.toml +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/setup.cfg +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/__init__.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/build_evt.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/build_glm.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/cli.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/core.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/hpge/__init__.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/hpge/psd.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/hpge/surface.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/hpge/utils.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/iterator.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/log_utils.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/math/__init__.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/math/functions.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/math/stats.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/__init__.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/cli.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/convolve.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/create.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/evt.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/mapview.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/numba_pdg.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/optmap.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/profile.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/shape/__init__.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/shape/cluster.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/shape/group.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/shape/reduction.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/units.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost/utils.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/SOURCES.txt +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/dependency_links.txt +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/entry_points.txt +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/not-zip-safe +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/requires.txt +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/top_level.txt +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/conftest.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/glm/test_build_glm.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hit/configs/args.yaml +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hit/configs/basic.yaml +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hit/configs/geom.gdml +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hit/configs/hit_config.yaml +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hit/configs/pars.yaml +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hit/configs/reshape.yaml +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/simulation/gammas.mac +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/simulation/geometry.gdml +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/simulation/make_dt_map.jl +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/simulation/make_geom.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_current.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_dt_heuristic.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_files/drift_time_maps.lh5 +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_files/internal_electron.lh5 +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_hpge_map.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_r90.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_surface.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/test_cli.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/test_core.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/test_math.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/test_optmap.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/test_profile.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/test_shape.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/test_units.py +0 -0
- {reboost-0.5.0 → reboost-0.5.1}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: reboost
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: New LEGEND Monte-Carlo simulation post-processing
|
|
5
5
|
Author-email: Manuel Huber <info@manuelhu.de>, Toby Dixon <toby.dixon.23@ucl.ac.uk>, Luigi Pertoldi <gipert@pm.me>
|
|
6
6
|
Maintainer: The LEGEND Collaboration
|
|
@@ -393,7 +393,7 @@ def build_hit(
|
|
|
393
393
|
lh5.read(obj, stp_file),
|
|
394
394
|
obj,
|
|
395
395
|
files.hit[file_idx],
|
|
396
|
-
wo_mode="write_safe",
|
|
396
|
+
wo_mode="write_safe" if file_idx == 0 else "append",
|
|
397
397
|
)
|
|
398
398
|
except LH5EncodeError as e:
|
|
399
399
|
msg = f"cannot forward object {obj} as it has been already processed by reboost"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: reboost
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: New LEGEND Monte-Carlo simulation post-processing
|
|
5
5
|
Author-email: Manuel Huber <info@manuelhu.de>, Toby Dixon <toby.dixon.23@ucl.ac.uk>, Luigi Pertoldi <gipert@pm.me>
|
|
6
6
|
Maintainer: The LEGEND Collaboration
|
|
@@ -132,6 +132,8 @@ def test_basic(test_gen_lh5, tmptestdir):
|
|
|
132
132
|
assert ak.all(hits.evtid[0] == [0, 0])
|
|
133
133
|
assert ak.all(hits.evtid[1] == [1, 1, 1])
|
|
134
134
|
|
|
135
|
+
assert len(hits) == 2
|
|
136
|
+
|
|
135
137
|
# test in memory
|
|
136
138
|
|
|
137
139
|
hits, time_dict = reboost.build_hit.build_hit(
|
|
@@ -158,6 +160,25 @@ def test_basic(test_gen_lh5, tmptestdir):
|
|
|
158
160
|
assert set(time_dict["geds"]["expressions"].keys()) == {"t0", "first_evtid", "energy"}
|
|
159
161
|
|
|
160
162
|
|
|
163
|
+
def test_file_merging(test_gen_lh5, tmptestdir):
|
|
164
|
+
outfile = f"{tmptestdir}/basic_hit_merged.lh5"
|
|
165
|
+
|
|
166
|
+
reboost.build_hit.build_hit(
|
|
167
|
+
f"{Path(__file__).parent}/configs/basic.yaml",
|
|
168
|
+
args={},
|
|
169
|
+
stp_files=[test_gen_lh5, test_gen_lh5],
|
|
170
|
+
glm_files=None,
|
|
171
|
+
hit_files=outfile,
|
|
172
|
+
overwrite=True,
|
|
173
|
+
)
|
|
174
|
+
|
|
175
|
+
assert lh5.ls(outfile) == ["hit", "vtx"]
|
|
176
|
+
|
|
177
|
+
hits = lh5.read("hit/det1", outfile).view_as("ak")
|
|
178
|
+
|
|
179
|
+
assert len(hits) == 4
|
|
180
|
+
|
|
181
|
+
|
|
161
182
|
def test_full_chain(test_gen_lh5, tmptestdir):
|
|
162
183
|
args = dbetto.AttrsDict(
|
|
163
184
|
{
|
|
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
|