legend-dataflow-scripts 0.2.0__py3-none-any.whl → 0.2.1__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.
- {legend_dataflow_scripts-0.2.0.dist-info → legend_dataflow_scripts-0.2.1.dist-info}/METADATA +1 -1
- {legend_dataflow_scripts-0.2.0.dist-info → legend_dataflow_scripts-0.2.1.dist-info}/RECORD +8 -8
- legenddataflowscripts/_version.py +2 -2
- legenddataflowscripts/par/geds/dsp/evtsel.py +11 -3
- legenddataflowscripts/workflow/utils.py +7 -5
- {legend_dataflow_scripts-0.2.0.dist-info → legend_dataflow_scripts-0.2.1.dist-info}/WHEEL +0 -0
- {legend_dataflow_scripts-0.2.0.dist-info → legend_dataflow_scripts-0.2.1.dist-info}/entry_points.txt +0 -0
- {legend_dataflow_scripts-0.2.0.dist-info → legend_dataflow_scripts-0.2.1.dist-info}/top_level.txt +0 -0
{legend_dataflow_scripts-0.2.0.dist-info → legend_dataflow_scripts-0.2.1.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: legend-dataflow-scripts
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
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
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
legenddataflowscripts/__init__.py,sha256=hlpvTxSBjOyXlZUyOyYx3VwT5LS6zNzhAZnTmfT3NjU,303
|
|
2
|
-
legenddataflowscripts/_version.py,sha256=
|
|
2
|
+
legenddataflowscripts/_version.py,sha256=vYqoJTG51NOUmYyL0xt8asRK8vUT4lGAdal_EZ59mvw,704
|
|
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
|
|
6
6
|
legenddataflowscripts/par/geds/dsp/dplms.py,sha256=GjOPuBuLPtzBEkfmLMSkxSSeBBsY7-wy0rY3jLjAJv0,5298
|
|
7
7
|
legenddataflowscripts/par/geds/dsp/eopt.py,sha256=MP_prgRL4Aqj_iNIpxHks2v4NY6B_iWh3SgcxQFhixk,13506
|
|
8
|
-
legenddataflowscripts/par/geds/dsp/evtsel.py,sha256=
|
|
8
|
+
legenddataflowscripts/par/geds/dsp/evtsel.py,sha256=9UEoyJ2aSRkGyANN1QCPqn69s-9lmdsuPE3a6fWl3ls,17383
|
|
9
9
|
legenddataflowscripts/par/geds/dsp/nopt.py,sha256=vHwlHbmBlozVHO1u89FwAx8c_kazTsxMqZGpbyjN-1M,3980
|
|
10
10
|
legenddataflowscripts/par/geds/dsp/pz.py,sha256=epYHSAqz13QLjxfnm38zH1Caaih5efuwNlgCipHD5Do,8148
|
|
11
11
|
legenddataflowscripts/par/geds/dsp/svm.py,sha256=eDneRB_PQZp8Q4n2VheTX3kbu4ufZQ-jnuCCjvtwFpk,826
|
|
@@ -29,9 +29,9 @@ legenddataflowscripts/workflow/__init__.py,sha256=JhudKYhBT8bXtX4LCqxQCHzUiITpug
|
|
|
29
29
|
legenddataflowscripts/workflow/execenv.py,sha256=qTG4N9ovEPxA0QtqG0wWUIuK50BZIcYvpVlpy-XgxPw,9257
|
|
30
30
|
legenddataflowscripts/workflow/filedb.py,sha256=rbvOcXUxLbHz177QuDIDAL3aysz-bZDjHOiMsRHssZo,3434
|
|
31
31
|
legenddataflowscripts/workflow/pre_compile_catalog.py,sha256=cEK0KXh-ClSE2Bo9MK471o79XG22bMY5r-2tIihtCfk,790
|
|
32
|
-
legenddataflowscripts/workflow/utils.py,sha256=
|
|
33
|
-
legend_dataflow_scripts-0.2.
|
|
34
|
-
legend_dataflow_scripts-0.2.
|
|
35
|
-
legend_dataflow_scripts-0.2.
|
|
36
|
-
legend_dataflow_scripts-0.2.
|
|
37
|
-
legend_dataflow_scripts-0.2.
|
|
32
|
+
legenddataflowscripts/workflow/utils.py,sha256=VVCsj7wNaqV6sw2Xnk_xykhVv3BKTX4hqQtKE4UUayg,3170
|
|
33
|
+
legend_dataflow_scripts-0.2.1.dist-info/METADATA,sha256=2KkkVU3SmbLQJnYeiBdhFbSslvpxnzhxbWmE7FZkRDk,3122
|
|
34
|
+
legend_dataflow_scripts-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
35
|
+
legend_dataflow_scripts-0.2.1.dist-info/entry_points.txt,sha256=B197waSm-orA_ZS-9rkxNDsmOHdCn8CbWodnlqXQKRg,1313
|
|
36
|
+
legend_dataflow_scripts-0.2.1.dist-info/top_level.txt,sha256=s8E2chjJNYUbrN6whFG_VCsJKySFp1IOXLcUefA7DB0,22
|
|
37
|
+
legend_dataflow_scripts-0.2.1.dist-info/RECORD,,
|
|
@@ -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.2.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 2,
|
|
31
|
+
__version__ = version = '0.2.1'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 2, 1)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -82,7 +82,7 @@ def get_out_data(
|
|
|
82
82
|
|
|
83
83
|
def par_geds_dsp_evtsel() -> None:
|
|
84
84
|
argparser = argparse.ArgumentParser()
|
|
85
|
-
argparser.add_argument("--raw-filelist", help="raw_filelist", type=str)
|
|
85
|
+
argparser.add_argument("--raw-filelist", help="raw_filelist", type=str, nargs="*")
|
|
86
86
|
argparser.add_argument(
|
|
87
87
|
"--pulser-file", help="pulser-file", type=str, required=False
|
|
88
88
|
)
|
|
@@ -139,8 +139,16 @@ def par_geds_dsp_evtsel() -> None:
|
|
|
139
139
|
if peak_dict.pop("run_selection") is True:
|
|
140
140
|
log.debug("Starting peak selection")
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
if (
|
|
143
|
+
isinstance(args.raw_filelist, list)
|
|
144
|
+
and args.raw_filelist[0].split(".")[-1] == "filelist"
|
|
145
|
+
):
|
|
146
|
+
files = args.raw_filelist[0]
|
|
147
|
+
with Path(files).open() as f:
|
|
148
|
+
files = f.read().splitlines()
|
|
149
|
+
else:
|
|
150
|
+
files = args.raw_filelist
|
|
151
|
+
|
|
144
152
|
raw_files = sorted(files)
|
|
145
153
|
|
|
146
154
|
peaks_kev = peak_dict["peaks"]
|
|
@@ -49,7 +49,8 @@ def subst_vars(
|
|
|
49
49
|
if use_env:
|
|
50
50
|
combined_var_values = dict(iter(os.environ.items()))
|
|
51
51
|
combined_var_values.update(copy.copy(var_values))
|
|
52
|
-
|
|
52
|
+
|
|
53
|
+
return subst_vars_impl(props, combined_var_values, ignore_missing)
|
|
53
54
|
|
|
54
55
|
|
|
55
56
|
def subst_vars_in_snakemake_config(workflow, config):
|
|
@@ -65,10 +66,11 @@ def subst_vars_in_snakemake_config(workflow, config):
|
|
|
65
66
|
use_env=True,
|
|
66
67
|
ignore_missing=False,
|
|
67
68
|
)
|
|
68
|
-
if "
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
if "execenv" in config:
|
|
70
|
+
if "system" in config:
|
|
71
|
+
config["execenv"] = config["execenv"][config["system"]]
|
|
72
|
+
else:
|
|
73
|
+
config["execenv"] = config["execenv"]["bare"]
|
|
72
74
|
|
|
73
75
|
|
|
74
76
|
def set_last_rule_name(workflow, new_name):
|
|
File without changes
|
{legend_dataflow_scripts-0.2.0.dist-info → legend_dataflow_scripts-0.2.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{legend_dataflow_scripts-0.2.0.dist-info → legend_dataflow_scripts-0.2.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|