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.
Files changed (71) hide show
  1. {reboost-0.5.0 → reboost-0.5.1}/PKG-INFO +1 -1
  2. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/_version.py +2 -2
  3. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/build_hit.py +1 -1
  4. {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/PKG-INFO +1 -1
  5. {reboost-0.5.0 → reboost-0.5.1}/tests/hit/test_build_hit.py +21 -0
  6. {reboost-0.5.0 → reboost-0.5.1}/LICENSE +0 -0
  7. {reboost-0.5.0 → reboost-0.5.1}/README.md +0 -0
  8. {reboost-0.5.0 → reboost-0.5.1}/pyproject.toml +0 -0
  9. {reboost-0.5.0 → reboost-0.5.1}/setup.cfg +0 -0
  10. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/__init__.py +0 -0
  11. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/build_evt.py +0 -0
  12. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/build_glm.py +0 -0
  13. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/cli.py +0 -0
  14. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/core.py +0 -0
  15. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/hpge/__init__.py +0 -0
  16. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/hpge/psd.py +0 -0
  17. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/hpge/surface.py +0 -0
  18. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/hpge/utils.py +0 -0
  19. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/iterator.py +0 -0
  20. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/log_utils.py +0 -0
  21. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/math/__init__.py +0 -0
  22. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/math/functions.py +0 -0
  23. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/math/stats.py +0 -0
  24. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/__init__.py +0 -0
  25. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/cli.py +0 -0
  26. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/convolve.py +0 -0
  27. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/create.py +0 -0
  28. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/evt.py +0 -0
  29. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/mapview.py +0 -0
  30. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/numba_pdg.py +0 -0
  31. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/optmap/optmap.py +0 -0
  32. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/profile.py +0 -0
  33. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/shape/__init__.py +0 -0
  34. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/shape/cluster.py +0 -0
  35. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/shape/group.py +0 -0
  36. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/shape/reduction.py +0 -0
  37. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/units.py +0 -0
  38. {reboost-0.5.0 → reboost-0.5.1}/src/reboost/utils.py +0 -0
  39. {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/SOURCES.txt +0 -0
  40. {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/dependency_links.txt +0 -0
  41. {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/entry_points.txt +0 -0
  42. {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/not-zip-safe +0 -0
  43. {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/requires.txt +0 -0
  44. {reboost-0.5.0 → reboost-0.5.1}/src/reboost.egg-info/top_level.txt +0 -0
  45. {reboost-0.5.0 → reboost-0.5.1}/tests/conftest.py +0 -0
  46. {reboost-0.5.0 → reboost-0.5.1}/tests/glm/test_build_glm.py +0 -0
  47. {reboost-0.5.0 → reboost-0.5.1}/tests/hit/configs/args.yaml +0 -0
  48. {reboost-0.5.0 → reboost-0.5.1}/tests/hit/configs/basic.yaml +0 -0
  49. {reboost-0.5.0 → reboost-0.5.1}/tests/hit/configs/geom.gdml +0 -0
  50. {reboost-0.5.0 → reboost-0.5.1}/tests/hit/configs/hit_config.yaml +0 -0
  51. {reboost-0.5.0 → reboost-0.5.1}/tests/hit/configs/pars.yaml +0 -0
  52. {reboost-0.5.0 → reboost-0.5.1}/tests/hit/configs/reshape.yaml +0 -0
  53. {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/simulation/gammas.mac +0 -0
  54. {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/simulation/geometry.gdml +0 -0
  55. {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/simulation/make_dt_map.jl +0 -0
  56. {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/simulation/make_geom.py +0 -0
  57. {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_current.py +0 -0
  58. {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_dt_heuristic.py +0 -0
  59. {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_files/drift_time_maps.lh5 +0 -0
  60. {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_files/internal_electron.lh5 +0 -0
  61. {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_hpge_map.py +0 -0
  62. {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_r90.py +0 -0
  63. {reboost-0.5.0 → reboost-0.5.1}/tests/hpge/test_surface.py +0 -0
  64. {reboost-0.5.0 → reboost-0.5.1}/tests/test_cli.py +0 -0
  65. {reboost-0.5.0 → reboost-0.5.1}/tests/test_core.py +0 -0
  66. {reboost-0.5.0 → reboost-0.5.1}/tests/test_math.py +0 -0
  67. {reboost-0.5.0 → reboost-0.5.1}/tests/test_optmap.py +0 -0
  68. {reboost-0.5.0 → reboost-0.5.1}/tests/test_profile.py +0 -0
  69. {reboost-0.5.0 → reboost-0.5.1}/tests/test_shape.py +0 -0
  70. {reboost-0.5.0 → reboost-0.5.1}/tests/test_units.py +0 -0
  71. {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.0
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
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.5.0'
21
- __version_tuple__ = version_tuple = (0, 5, 0)
20
+ __version__ = version = '0.5.1'
21
+ __version_tuple__ = version_tuple = (0, 5, 1)
@@ -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.0
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