legend-dataflow-scripts 0.1.0__py3-none-any.whl → 0.1.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: legend-dataflow-scripts
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Python package for the processing scripts for LEGEND-200 data
5
5
  Author-email: George Marshall <ggmarsh@uw.edu>, Luigi Pertoldi <gipert@pm.me>
6
6
  Maintainer: The LEGEND Collaboration
@@ -19,10 +19,10 @@ Requires-Python: >=3.11
19
19
  Description-Content-Type: text/markdown
20
20
  Requires-Dist: colorlog
21
21
  Requires-Dist: dbetto>=1.2.3
22
- Requires-Dist: pygama>=2.1.1a3
23
- Requires-Dist: dspeed>=1.6.6a1
22
+ Requires-Dist: pygama>=2.1
23
+ Requires-Dist: dspeed>=1.6
24
24
  Requires-Dist: pylegendmeta>=1.2.5
25
- Requires-Dist: legend-pydataobj>=1.12.0a4
25
+ Requires-Dist: legend-pydataobj>=1.11
26
26
  Requires-Dist: legend-daq2lh5>=1.5.0
27
27
  Requires-Dist: pip
28
28
  Provides-Extra: test
@@ -1,5 +1,5 @@
1
1
  legenddataflowscripts/__init__.py,sha256=hlpvTxSBjOyXlZUyOyYx3VwT5LS6zNzhAZnTmfT3NjU,303
2
- legenddataflowscripts/_version.py,sha256=-LyU5F1uZDjn6Q8_Z6-_FJt_8RE4Kq9zcKdg1abSSps,511
2
+ legenddataflowscripts/_version.py,sha256=bSmADqydH8nBu-J4lG8UVuR7hnU_zcwhnSav2oQ0W0A,511
3
3
  legenddataflowscripts/par/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  legenddataflowscripts/par/geds/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  legenddataflowscripts/par/geds/dsp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -25,12 +25,12 @@ legenddataflowscripts/utils/convert_np.py,sha256=8q_K3w3jAREG-9CJlErP3Vca0OYTYAY
25
25
  legenddataflowscripts/utils/log.py,sha256=5v8J7PZJHHoSy12w9e9DkYmqdPvYXj6YfVaMbhvX614,2230
26
26
  legenddataflowscripts/utils/pulser_removal.py,sha256=kuARdp1jf-lsUWcb0_KRDp-ZXzkHNrDCXUc3h7TJm7Q,424
27
27
  legenddataflowscripts/workflow/__init__.py,sha256=p-57OklNpVYqwMaLctLO8zMvhpXaTILkd3j4CaS_Juk,394
28
- legenddataflowscripts/workflow/execenv.py,sha256=34V7euhKiTXDDBDuX4t2Oi_zPx6lAcCRYiHqVCz6Xps,9032
28
+ legenddataflowscripts/workflow/execenv.py,sha256=O6Z6EH6Yp0JXnwX2wTzduHC9Q9gu-_d1RuuE2pQ5caE,9061
29
29
  legenddataflowscripts/workflow/filedb.py,sha256=rbvOcXUxLbHz177QuDIDAL3aysz-bZDjHOiMsRHssZo,3434
30
30
  legenddataflowscripts/workflow/pre_compile_catalog.py,sha256=cEK0KXh-ClSE2Bo9MK471o79XG22bMY5r-2tIihtCfk,790
31
31
  legenddataflowscripts/workflow/utils.py,sha256=eKE8KIG2ffynZt9fTbI1SVQV85i3aW9GFGh1Nio1iDo,3118
32
- legend_dataflow_scripts-0.1.0.dist-info/METADATA,sha256=fzaP59xzQtj2rxNOiq0K29b36LYQgtbo-I44z24-7ew,3134
33
- legend_dataflow_scripts-0.1.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
34
- legend_dataflow_scripts-0.1.0.dist-info/entry_points.txt,sha256=B197waSm-orA_ZS-9rkxNDsmOHdCn8CbWodnlqXQKRg,1313
35
- legend_dataflow_scripts-0.1.0.dist-info/top_level.txt,sha256=s8E2chjJNYUbrN6whFG_VCsJKySFp1IOXLcUefA7DB0,22
36
- legend_dataflow_scripts-0.1.0.dist-info/RECORD,,
32
+ legend_dataflow_scripts-0.1.2.dist-info/METADATA,sha256=FsY5VWfz1t6KmRXwG2iRBnawVy5_yqy3_rNpT50FOHo,3122
33
+ legend_dataflow_scripts-0.1.2.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
34
+ legend_dataflow_scripts-0.1.2.dist-info/entry_points.txt,sha256=B197waSm-orA_ZS-9rkxNDsmOHdCn8CbWodnlqXQKRg,1313
35
+ legend_dataflow_scripts-0.1.2.dist-info/top_level.txt,sha256=s8E2chjJNYUbrN6whFG_VCsJKySFp1IOXLcUefA7DB0,22
36
+ legend_dataflow_scripts-0.1.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.7.1)
2
+ Generator: setuptools (80.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.1.0'
21
- __version_tuple__ = version_tuple = (0, 1, 0)
20
+ __version__ = version = '0.1.2'
21
+ __version_tuple__ = version_tuple = (0, 1, 2)
@@ -18,6 +18,8 @@ from . import utils
18
18
 
19
19
  log = logging.getLogger(__name__)
20
20
 
21
+ OCI_ENGINES = ["docker", "podman", "podman-hpc", "shifter"]
22
+
21
23
 
22
24
  def _execenv2str(cmd_expr: Iterable, cmd_env: Mapping) -> str:
23
25
  return " ".join([f"{k}={v}" for k, v in cmd_env.items()]) + " " + " ".join(cmd_expr)
@@ -27,12 +29,7 @@ def apptainer_env_vars(cmdenv: Mapping) -> list[str]:
27
29
  return [f"--env={var}={val}" for var, val in cmdenv.items()]
28
30
 
29
31
 
30
- def docker_env_vars(cmdenv: Mapping) -> list[str]:
31
- # same syntax
32
- return apptainer_env_vars(cmdenv)
33
-
34
-
35
- def shifter_env_vars(cmdenv: Mapping) -> list[str]:
32
+ def oci_engine_env_vars(cmdenv: Mapping) -> list[str]:
36
33
  # same syntax
37
34
  return apptainer_env_vars(cmdenv)
38
35
 
@@ -69,20 +66,20 @@ def execenv_prefix(
69
66
  if has_xdg:
70
67
  cmdline += [f"--bind={xdg_runtime_dir}"]
71
68
 
72
- elif "docker" in config.execenv.cmd:
73
- cmdline += docker_env_vars(config.execenv.env)
74
-
75
- elif "shifter" in config.execenv.cmd:
76
- cmdline += shifter_env_vars(config.execenv.env)
69
+ elif any(engine in config.execenv.cmd for engine in OCI_ENGINES):
70
+ cmdline += oci_engine_env_vars(config.execenv.env)
77
71
 
72
+ # no XDG mount with shifter
78
73
  if (
79
- any(exe in config.execenv.cmd for exe in ("docker", "shifter"))
74
+ any(exe in config.execenv.cmd for exe in OCI_ENGINES)
80
75
  and has_xdg
76
+ and "shifter" not in config.execenv.cmd
81
77
  ):
82
78
  cmdline += [f"--volume={xdg_runtime_dir}:{xdg_runtime_dir}"]
83
79
 
84
80
  # now we can add the arguments
85
- cmdline += shlex.split(config.execenv.arg)
81
+ _arg = config.execenv.arg
82
+ cmdline += shlex.split(_arg if isinstance(_arg, str) else " ".join(_arg))
86
83
 
87
84
  if as_string:
88
85
  return _execenv2str(cmdline, cmdenv) + " "
@@ -192,7 +189,7 @@ def dataflow() -> None:
192
189
  )
193
190
  )
194
191
 
195
- logger = logging.getLogger("legenddataflow")
192
+ logger = logging.getLogger("legenddataflowscripts")
196
193
  logger.setLevel(logging.DEBUG)
197
194
  logger.addHandler(handler)
198
195
 
@@ -224,7 +221,8 @@ def install(args) -> None:
224
221
  utils.subst_vars(
225
222
  config_dict, var_values={"_": config_loc}, use_env=True, ignore_missing=False
226
223
  )
227
- config_dict["execenv"] = config_dict["execenv"][args.system]
224
+
225
+ config_dict["execenv"] = config_dict.execenv[args.system]
228
226
 
229
227
  # path to virtualenv location
230
228
  path_install = config_dict.paths.install