reboost 0.10.0a1__py3-none-any.whl → 0.10.0a2__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
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.10.0a1'
32
- __version_tuple__ = version_tuple = (0, 10, 0, 'a1')
31
+ __version__ = version = '0.10.0a2'
32
+ __version_tuple__ = version_tuple = (0, 10, 0, 'a2')
33
33
 
34
34
  __commit_id__ = commit_id = None
reboost/build_hit.py CHANGED
@@ -452,6 +452,8 @@ def _evaluate_operation(
452
452
  time_dict=time_dict,
453
453
  name=field,
454
454
  )
455
+ if not isinstance(info, str) and "units" in info:
456
+ col = units.attach_units(col, info["units"])
455
457
  units.move_units_to_flattened_data(col)
456
458
 
457
459
  core.add_field_with_nesting(hit_table, field, col)
reboost/core.py CHANGED
@@ -538,8 +538,5 @@ def remove_columns(tab: Table, outputs: list) -> Table:
538
538
 
539
539
  def merge(hit_table: Table, output_table: ak.Array | None):
540
540
  """Merge the table with the array."""
541
- return (
542
- hit_table.view_as("ak")
543
- if output_table is None
544
- else ak.concatenate((output_table, hit_table.view_as("ak")))
545
- )
541
+ hit_table = hit_table.view_as("ak", with_units=True)
542
+ return hit_table if output_table is None else ak.concatenate((output_table, hit_table))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reboost
3
- Version: 0.10.0a1
3
+ Version: 0.10.0a2
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,11 +1,11 @@
1
1
  reboost/__init__.py,sha256=VZz9uo7i2jgAx8Zi15SptLZnE_qcnGuNWwqkD3rYHFA,278
2
2
  reboost/__main__.py,sha256=42koSxY2st4mMIRSAnKz06nP5HppMPxBVFf2jaHljGs,95
3
- reboost/_version.py,sha256=a8V92dqkyQ6fbIq5s9iPBxQ-3LHf1Wk-F0jn3qEM-UM,714
3
+ reboost/_version.py,sha256=o2SCKaFpIjZ_mxQO5CtT0P_LjixtzK8EKUUO8pTQ4Rg,714
4
4
  reboost/build_evt.py,sha256=VXIfK_pfe_Cgym6gI8dESwONZi-v_4fll0Pn09vePQY,3767
5
5
  reboost/build_glm.py,sha256=IerSLQfe51ZO7CQP2kmfPnOIVaDtcfw3byOM02Vaz6o,9472
6
- reboost/build_hit.py,sha256=ojk0lNfAk9orGm0aNKjkAMJy_ZhR8crnnjLvWTpR8dk,17117
6
+ reboost/build_hit.py,sha256=UjS4yp42_7D9IN-Nq1RfpyDeAcnH6THzUNCzupjRDKw,17224
7
7
  reboost/cli.py,sha256=68EzKiWTHJ2u1RILUv7IX9HaVq6nTTM80_W_MUnWRe4,6382
8
- reboost/core.py,sha256=kQP6Z3ql4rH5dfKcuNS1QXRutMg4a1Fek-whV-NYsew,15627
8
+ reboost/core.py,sha256=v0ze5wKqU8fmSExzNX6zUYs9E7xgwBvFY_lEJgCMbdQ,15624
9
9
  reboost/iterator.py,sha256=qlEqRv5qOh8eIs-dyVOLYTvH-ZpQDx9fLckpcAdtWjs,6975
10
10
  reboost/log_utils.py,sha256=VqS_9OC5NeNU3jcowVOBB0NJ6ssYvNWnirEY-JVduEA,766
11
11
  reboost/profile.py,sha256=EOTmjmS8Rm_nYgBWNh6Rntl2XDsxdyed7yEdWtsZEeg,2598
@@ -36,9 +36,9 @@ reboost/shape/group.py,sha256=PY7FGUnralj1BkRl4YtguCnzvOr-ymMd4ZFVmzPCwmM,6352
36
36
  reboost/shape/reduction.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  reboost/spms/__init__.py,sha256=8I6WT8i_kUPqEDnSD0aCf6A26cjKjQQZSNrvwZ3o-Ac,415
38
38
  reboost/spms/pe.py,sha256=LwqrK1HOZWzGcNZnntaqI6r4rnDww4KW9Mao4xLFbDE,8226
39
- reboost-0.10.0a1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
40
- reboost-0.10.0a1.dist-info/METADATA,sha256=nq8Dwrn1nuZBWkUKyn4Sk16z822x_MHyDd1v9AHvGtA,3880
41
- reboost-0.10.0a1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
42
- reboost-0.10.0a1.dist-info/entry_points.txt,sha256=DxhD6BidSWNot9BrejHJjQ7RRLmrMaBIl52T75oWTwM,93
43
- reboost-0.10.0a1.dist-info/top_level.txt,sha256=q-IBsDepaY_AbzbRmQoW8EZrITXRVawVnNrB-_zyXZs,8
44
- reboost-0.10.0a1.dist-info/RECORD,,
39
+ reboost-0.10.0a2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
40
+ reboost-0.10.0a2.dist-info/METADATA,sha256=oaef7gtpw-LErMt8M-oB5CUVAENqjo7tNTwdrkZkQzA,3880
41
+ reboost-0.10.0a2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
42
+ reboost-0.10.0a2.dist-info/entry_points.txt,sha256=DxhD6BidSWNot9BrejHJjQ7RRLmrMaBIl52T75oWTwM,93
43
+ reboost-0.10.0a2.dist-info/top_level.txt,sha256=q-IBsDepaY_AbzbRmQoW8EZrITXRVawVnNrB-_zyXZs,8
44
+ reboost-0.10.0a2.dist-info/RECORD,,