reboost 0.2.3__py3-none-any.whl → 0.2.4__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 +2 -2
- reboost/build_hit.py +3 -3
- reboost/utils.py +9 -6
- {reboost-0.2.3.dist-info → reboost-0.2.4.dist-info}/METADATA +1 -1
- {reboost-0.2.3.dist-info → reboost-0.2.4.dist-info}/RECORD +9 -9
- {reboost-0.2.3.dist-info → reboost-0.2.4.dist-info}/WHEEL +0 -0
- {reboost-0.2.3.dist-info → reboost-0.2.4.dist-info}/entry_points.txt +0 -0
- {reboost-0.2.3.dist-info → reboost-0.2.4.dist-info}/licenses/LICENSE +0 -0
- {reboost-0.2.3.dist-info → reboost-0.2.4.dist-info}/top_level.txt +0 -0
reboost/_version.py
CHANGED
reboost/build_hit.py
CHANGED
|
@@ -238,7 +238,7 @@ def build_hit(
|
|
|
238
238
|
for file_idx, (stp_file, glm_file) in enumerate(zip(files.stp, files.glm)):
|
|
239
239
|
msg = (
|
|
240
240
|
f"... starting post processing of {stp_file} to {files.hit[file_idx]} "
|
|
241
|
-
if files.hit is not None
|
|
241
|
+
if files.hit[file_idx] is not None
|
|
242
242
|
else f"... starting post processing of {stp_file}"
|
|
243
243
|
)
|
|
244
244
|
log.info(msg)
|
|
@@ -299,7 +299,7 @@ def build_hit(
|
|
|
299
299
|
# produce the hit table
|
|
300
300
|
for out_det_idx, out_detector in enumerate(out_detectors):
|
|
301
301
|
# loop over the rows
|
|
302
|
-
if out_detector not in output_tables and files.hit is None:
|
|
302
|
+
if out_detector not in output_tables and files.hit[file_idx] is None:
|
|
303
303
|
output_tables[out_detector] = None
|
|
304
304
|
|
|
305
305
|
# get the attributes
|
|
@@ -360,7 +360,7 @@ def build_hit(
|
|
|
360
360
|
)
|
|
361
361
|
|
|
362
362
|
# now write
|
|
363
|
-
if files.hit is not None:
|
|
363
|
+
if files.hit[file_idx] is not None:
|
|
364
364
|
if time_dict is not None:
|
|
365
365
|
start_time = time.time()
|
|
366
366
|
|
reboost/utils.py
CHANGED
|
@@ -37,6 +37,9 @@ def get_file_dict(
|
|
|
37
37
|
files will be created in memory.
|
|
38
38
|
"""
|
|
39
39
|
# make a list of the right length
|
|
40
|
+
if isinstance(stp_files, str):
|
|
41
|
+
stp_files = [stp_files]
|
|
42
|
+
|
|
40
43
|
glm_files_list = [None] * len(stp_files) if glm_files is None else glm_files
|
|
41
44
|
|
|
42
45
|
# make a list of files in case
|
|
@@ -44,13 +47,13 @@ def get_file_dict(
|
|
|
44
47
|
# 2) hit_files and stp_files are both lists of different length
|
|
45
48
|
|
|
46
49
|
hit_is_list = isinstance(hit_files, list)
|
|
47
|
-
stp_is_list = isinstance(stp_files, list)
|
|
48
|
-
|
|
49
|
-
make_files_list = (not hit_is_list and stp_is_list) or (
|
|
50
|
-
hit_is_list and stp_is_list and len(hit_files) == 1 and len(stp_files) > 1
|
|
51
|
-
)
|
|
52
50
|
|
|
53
|
-
|
|
51
|
+
if not hit_is_list:
|
|
52
|
+
hit_files_list = [hit_files] * len(stp_files)
|
|
53
|
+
elif hit_is_list and len(hit_files) == 1 and len(stp_files) > 1:
|
|
54
|
+
hit_files_list = [hit_files[0]] * len(stp_files)
|
|
55
|
+
else:
|
|
56
|
+
hit_files_list = hit_files
|
|
54
57
|
|
|
55
58
|
files = {}
|
|
56
59
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: reboost
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
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,15 +1,15 @@
|
|
|
1
1
|
reboost/__init__.py,sha256=RVNl3Qgx_hTUeBGXaWYmiTcmXUDhTfvlAGGC8bo_jP8,316
|
|
2
|
-
reboost/_version.py,sha256=
|
|
2
|
+
reboost/_version.py,sha256=1LUN_sRKOiFInoB6AlW6TYoQMCh1Z4KutwcHNvHcfB0,511
|
|
3
3
|
reboost/build_evt.py,sha256=zj3wG_kaV3EoRMQ33AkCNa_2Fv8cLtRuhyRyRmSrOYQ,4797
|
|
4
4
|
reboost/build_glm.py,sha256=LQkM6x6mMOE92-c78uoclOvP9zp3vdMuLQCSP2f2Zk4,9263
|
|
5
|
-
reboost/build_hit.py,sha256=
|
|
5
|
+
reboost/build_hit.py,sha256=_JDe7j2lYmvQD7ABoSgVhIw6CiCQHqnqFGvZbcRY-EU,14290
|
|
6
6
|
reboost/build_tcm.py,sha256=-PawBHoHj0zsm4XsZu5bco9d9a09STicZchduefSNfI,2951
|
|
7
7
|
reboost/cli.py,sha256=HTZ05DRnDodcf_D6BJCCavx5HqhKDadJCgf-oh8HTJk,6365
|
|
8
8
|
reboost/core.py,sha256=7Nclc6RUCOSJ1CWVAX0rFNJGM1LEgqvc4tD04CxEAtg,10766
|
|
9
9
|
reboost/iterator.py,sha256=72AyoRTgMpWghZt2UOqRj0RGiNzaiBAwgNIUZdduK2s,4698
|
|
10
10
|
reboost/log_utils.py,sha256=VqS_9OC5NeNU3jcowVOBB0NJ6ssYvNWnirEY-JVduEA,766
|
|
11
11
|
reboost/profile.py,sha256=EOTmjmS8Rm_nYgBWNh6Rntl2XDsxdyed7yEdWtsZEeg,2598
|
|
12
|
-
reboost/utils.py,sha256=
|
|
12
|
+
reboost/utils.py,sha256=wzfW0_W5IF3sw3DcrLOLDNZV2LKfUoEi6Ks8Db5gQHg,7785
|
|
13
13
|
reboost/hpge/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
reboost/hpge/psd.py,sha256=vFs8Y5XVW261pB6aOvWmIDzqOaBg-gEOLhL9PbjlEKI,2113
|
|
15
15
|
reboost/hpge/surface.py,sha256=SZyTmOCTipf27jYaJhtdInzGF1RZ2wKpbtf6HlOQYwM,3662
|
|
@@ -28,9 +28,9 @@ reboost/shape/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
28
28
|
reboost/shape/cluster.py,sha256=RIvBlhHzp88aaUZGofp5SD9bimnoiqIOddhQ84jiwoM,8135
|
|
29
29
|
reboost/shape/group.py,sha256=Q3DhEPxbhw3p4bwvpswSd0A-p224l5vRZnfQIEkOVJE,4475
|
|
30
30
|
reboost/shape/reduction.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
|
-
reboost-0.2.
|
|
32
|
-
reboost-0.2.
|
|
33
|
-
reboost-0.2.
|
|
34
|
-
reboost-0.2.
|
|
35
|
-
reboost-0.2.
|
|
36
|
-
reboost-0.2.
|
|
31
|
+
reboost-0.2.4.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
32
|
+
reboost-0.2.4.dist-info/METADATA,sha256=3TF-pB7slRO8Y7UuAqVHfZpUJdUKUzAW_UKshjJzYv4,44219
|
|
33
|
+
reboost-0.2.4.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
|
34
|
+
reboost-0.2.4.dist-info/entry_points.txt,sha256=DxhD6BidSWNot9BrejHJjQ7RRLmrMaBIl52T75oWTwM,93
|
|
35
|
+
reboost-0.2.4.dist-info/top_level.txt,sha256=q-IBsDepaY_AbzbRmQoW8EZrITXRVawVnNrB-_zyXZs,8
|
|
36
|
+
reboost-0.2.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|