reboost 0.4.2__py3-none-any.whl → 0.4.3__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.
reboost/_version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.4.2'
21
- __version_tuple__ = version_tuple = (0, 4, 2)
20
+ __version__ = version = '0.4.3'
21
+ __version_tuple__ = version_tuple = (0, 4, 3)
reboost/build_evt.py CHANGED
@@ -91,7 +91,7 @@ def build_evt(
91
91
  # iterate through the TCM
92
92
 
93
93
  out_ak = ak.Array([])
94
- mode = "of"
94
+ mode = "overwrite_file"
95
95
 
96
96
  # get channel groupings
97
97
  channels = {}
reboost/build_glm.py CHANGED
@@ -280,7 +280,7 @@ def build_glm(
280
280
  out_tab.add_field(field, Array(glm[field].to_numpy()))
281
281
 
282
282
  # write the output file
283
- mode = "of" if (vidx == 0 and idx == 0) else "append"
283
+ mode = "overwrite_file" if (vidx == 0 and idx == 0) else "append"
284
284
 
285
285
  lh5_subgroup = lh5_table.replace("stp/", "")
286
286
 
reboost/build_hit.py CHANGED
@@ -125,7 +125,7 @@ A :func:`build_hit` to parse the following configuration file:
125
125
  .group("system").spms
126
126
  .group("analysis.status").on
127
127
  .map("name").keys()
128
- input: lar
128
+ - input: lar
129
129
 
130
130
  outputs:
131
131
  - t0
reboost/build_tcm.py CHANGED
@@ -53,7 +53,7 @@ def build_tcm(
53
53
  )
54
54
 
55
55
  if tcm is not None:
56
- lh5.write(tcm, "tcm", out_file, wo_mode="of")
56
+ lh5.write(tcm, "tcm", out_file, wo_mode="overwrite_file")
57
57
 
58
58
 
59
59
  def get_tcm_from_ak(
reboost/utils.py CHANGED
@@ -27,12 +27,12 @@ def get_wo_mode(
27
27
  good_idx = all(i == 0 for i in indices)
28
28
 
29
29
  if good_idx and new_hit_file:
30
- return "of" if overwrite else "w"
30
+ return "overwrite_file" if overwrite else "write_safe"
31
31
 
32
32
  # if we have a detector not the first and chunk 0 append column
33
33
  if ((in_det > 0) or (out_det > 0)) & (chunk == 0):
34
- return "ac"
35
- return "a"
34
+ return "append_column"
35
+ return "append"
36
36
 
37
37
 
38
38
  def get_file_dict(
@@ -338,7 +338,7 @@ def write_lh5(
338
338
  if time_dict is not None:
339
339
  start_time = time.time()
340
340
 
341
- if wo_mode != "a":
341
+ if wo_mode not in ("a", "append"):
342
342
  lh5.write(
343
343
  Struct({out_detector: hit_table}),
344
344
  out_field,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reboost
3
- Version: 0.4.2
3
+ Version: 0.4.3
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
@@ -1,16 +1,16 @@
1
1
  reboost/__init__.py,sha256=2Lc9Idexf1S3IQvHQS1LPD-SCud7Mnmpr2dJ6U-ThvU,303
2
- reboost/_version.py,sha256=_F8vLxUxrAtC2alXNPGVa9l3P6_vLpQAzemS6QlnPGQ,511
3
- reboost/build_evt.py,sha256=zj3wG_kaV3EoRMQ33AkCNa_2Fv8cLtRuhyRyRmSrOYQ,4797
4
- reboost/build_glm.py,sha256=zRTXTmlvHePcFDJkJwBbIo5nMjW0ZP4-2CJvqN2QBe8,9525
5
- reboost/build_hit.py,sha256=tf7KBp8DYuAmT-k6oBF54rjlIu_y9tVuyuGldA2I0Jk,15247
6
- reboost/build_tcm.py,sha256=Ntf2nrS072SGlZzdTHETtaQdhl0tL3ikvdzrOQvlb-E,2944
2
+ reboost/_version.py,sha256=zJwW9_MgFPmVYNh3YnSsdJ4y2EqGvu1bzYeID1Rrd0A,511
3
+ reboost/build_evt.py,sha256=NuI5HRaA4vQApZWPTzfNeUxUhzLfaubLKr6ZT7KWCEI,4809
4
+ reboost/build_glm.py,sha256=-MbPTaUdXlmBml1yzvDB1ddfCh2Vjtvblo3GWo_KzrY,9537
5
+ reboost/build_hit.py,sha256=e0aSNIlbYIsO43jVXTEIJIMHAOGEnkHieWS1XGgpOkc,15247
6
+ reboost/build_tcm.py,sha256=jeuyyVpXYMmvJp2lUKewhbU2diV-_d5fFlkA3Zv2JFU,2956
7
7
  reboost/cli.py,sha256=YZvCaxkU0VA_xMAeyw1PN_x17RUkl8uzv19nkNkz3kE,6509
8
8
  reboost/core.py,sha256=B577b5KzAYpGI7c4eCxIRKgt9tq6hwVr2-DtYTml1e8,12826
9
9
  reboost/iterator.py,sha256=YFsNjC2Onsyhvkogbs79eD8iqstCdCAfFEaEOMr_ujg,6810
10
10
  reboost/log_utils.py,sha256=VqS_9OC5NeNU3jcowVOBB0NJ6ssYvNWnirEY-JVduEA,766
11
11
  reboost/profile.py,sha256=EOTmjmS8Rm_nYgBWNh6Rntl2XDsxdyed7yEdWtsZEeg,2598
12
12
  reboost/units.py,sha256=3EH8XlpbsObdu5vLgxhm1600L6UNYD5jng4SjJT_1QE,2202
13
- reboost/utils.py,sha256=CL83IBkddFXdzD83JXGQeZ_N6WxJ8qwj7GgBt1vzmbg,9652
13
+ reboost/utils.py,sha256=MjnZNXP80gD3DGFfNEdT-WyiTsA1GRMElYsoW5hX4v8,9705
14
14
  reboost/hpge/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  reboost/hpge/psd.py,sha256=jAUAoQ_PMz76wyA1NXYHNKtOwoCnRT3My8_LCFrKi-U,13860
16
16
  reboost/hpge/surface.py,sha256=lbWcFnFFWKxtFKs755GyM9US_IfyxaoM6MpOIZgIMM0,7478
@@ -30,9 +30,9 @@ reboost/shape/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  reboost/shape/cluster.py,sha256=RIvBlhHzp88aaUZGofp5SD9bimnoiqIOddhQ84jiwoM,8135
31
31
  reboost/shape/group.py,sha256=_z2qCOret3E-kj-nrp1-J5j2lEwQpgfYdQp2pgpDHR8,4449
32
32
  reboost/shape/reduction.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
- reboost-0.4.2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
34
- reboost-0.4.2.dist-info/METADATA,sha256=TnY5hEIWwoDYIwUEvTW5UeAKpI9t3hU5TCFzl1j8cQM,44251
35
- reboost-0.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
36
- reboost-0.4.2.dist-info/entry_points.txt,sha256=DxhD6BidSWNot9BrejHJjQ7RRLmrMaBIl52T75oWTwM,93
37
- reboost-0.4.2.dist-info/top_level.txt,sha256=q-IBsDepaY_AbzbRmQoW8EZrITXRVawVnNrB-_zyXZs,8
38
- reboost-0.4.2.dist-info/RECORD,,
33
+ reboost-0.4.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
34
+ reboost-0.4.3.dist-info/METADATA,sha256=KeW1VoCUjCxRuz8nRD5gnkYF-2Z4H53x87V586TmUwM,44251
35
+ reboost-0.4.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
36
+ reboost-0.4.3.dist-info/entry_points.txt,sha256=DxhD6BidSWNot9BrejHJjQ7RRLmrMaBIl52T75oWTwM,93
37
+ reboost-0.4.3.dist-info/top_level.txt,sha256=q-IBsDepaY_AbzbRmQoW8EZrITXRVawVnNrB-_zyXZs,8
38
+ reboost-0.4.3.dist-info/RECORD,,