legend-dataflow-scripts 0.3.1__tar.gz → 0.3.2__tar.gz

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.
Files changed (44) hide show
  1. {legend_dataflow_scripts-0.3.1/src/legend_dataflow_scripts.egg-info → legend_dataflow_scripts-0.3.2}/PKG-INFO +7 -6
  2. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/pyproject.toml +6 -5
  3. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2/src/legend_dataflow_scripts.egg-info}/PKG-INFO +7 -6
  4. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legend_dataflow_scripts.egg-info/requires.txt +6 -5
  5. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/_version.py +3 -3
  6. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/dsp/dplms.py +2 -1
  7. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/dsp/eopt.py +2 -2
  8. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/dsp/evtsel.py +1 -1
  9. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/dsp/nopt.py +1 -1
  10. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/dsp/pz.py +1 -1
  11. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/dsp/svm_build.py +1 -1
  12. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/hit/ecal.py +1 -1
  13. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/hit/qc.py +1 -1
  14. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/tier/dsp.py +1 -1
  15. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/tier/hit.py +4 -4
  16. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/workflow/filedb.py +1 -1
  17. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/LICENSE +0 -0
  18. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/README.md +0 -0
  19. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/setup.cfg +0 -0
  20. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legend_dataflow_scripts.egg-info/SOURCES.txt +0 -0
  21. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legend_dataflow_scripts.egg-info/dependency_links.txt +0 -0
  22. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legend_dataflow_scripts.egg-info/entry_points.txt +0 -0
  23. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legend_dataflow_scripts.egg-info/not-zip-safe +0 -0
  24. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legend_dataflow_scripts.egg-info/top_level.txt +0 -0
  25. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/__init__.py +0 -0
  26. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/__init__.py +0 -0
  27. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/__init__.py +0 -0
  28. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/dsp/__init__.py +0 -0
  29. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/dsp/svm.py +0 -0
  30. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/hit/__init__.py +0 -0
  31. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/hit/aoe.py +0 -0
  32. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/par/geds/hit/lq.py +0 -0
  33. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/tier/__init__.py +0 -0
  34. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/utils/__init__.py +0 -0
  35. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/utils/alias_table.py +0 -0
  36. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/utils/cfgtools.py +0 -0
  37. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/utils/convert_np.py +0 -0
  38. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/utils/log.py +0 -0
  39. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/utils/plot_dict.py +0 -0
  40. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/utils/pulser_removal.py +0 -0
  41. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/workflow/__init__.py +0 -0
  42. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/workflow/execenv.py +0 -0
  43. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/workflow/pre_compile_catalog.py +0 -0
  44. {legend_dataflow_scripts-0.3.1 → legend_dataflow_scripts-0.3.2}/src/legenddataflowscripts/workflow/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: legend-dataflow-scripts
3
- Version: 0.3.1
3
+ Version: 0.3.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
@@ -18,11 +18,12 @@ Classifier: Topic :: Scientific/Engineering
18
18
  Requires-Python: >=3.11
19
19
  Description-Content-Type: text/markdown
20
20
  Requires-Dist: colorlog
21
- Requires-Dist: dbetto>=1.2.3
22
- Requires-Dist: pygama>=2.3.8
23
- Requires-Dist: dspeed>=2.0
24
- Requires-Dist: pylegendmeta>=1.2.5
25
- Requires-Dist: legend-pydataobj>=1.16
21
+ Requires-Dist: dbetto>=1.3.6
22
+ Requires-Dist: pygama>=2.3.10
23
+ Requires-Dist: dspeed>=2.1.4
24
+ Requires-Dist: pylegendmeta>=1.4.4
25
+ Requires-Dist: legend-pydataobj>=2.0.2
26
+ Requires-Dist: legend-lh5io>=0.2.6
26
27
  Requires-Dist: pip
27
28
  Provides-Extra: test
28
29
  Requires-Dist: legend-dataflow-scripts; extra == "test"
@@ -51,11 +51,12 @@ dynamic = ["version"]
51
51
 
52
52
  dependencies = [
53
53
  "colorlog",
54
- "dbetto>=1.2.3",
55
- "pygama>=2.3.8",
56
- "dspeed>=2.0",
57
- "pylegendmeta>=1.2.5",
58
- "legend-pydataobj>=1.16",
54
+ "dbetto>=1.3.6",
55
+ "pygama>=2.3.10",
56
+ "dspeed>=2.1.4",
57
+ "pylegendmeta>=1.4.4",
58
+ "legend-pydataobj>=2.0.2",
59
+ "legend-lh5io>=0.2.6",
59
60
  "pip",
60
61
  ]
61
62
  # "legend-daq2lh5 @ file:///${PROJECT_ROOT}/software/python/src/legend-daq2lh5
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: legend-dataflow-scripts
3
- Version: 0.3.1
3
+ Version: 0.3.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
@@ -18,11 +18,12 @@ Classifier: Topic :: Scientific/Engineering
18
18
  Requires-Python: >=3.11
19
19
  Description-Content-Type: text/markdown
20
20
  Requires-Dist: colorlog
21
- Requires-Dist: dbetto>=1.2.3
22
- Requires-Dist: pygama>=2.3.8
23
- Requires-Dist: dspeed>=2.0
24
- Requires-Dist: pylegendmeta>=1.2.5
25
- Requires-Dist: legend-pydataobj>=1.16
21
+ Requires-Dist: dbetto>=1.3.6
22
+ Requires-Dist: pygama>=2.3.10
23
+ Requires-Dist: dspeed>=2.1.4
24
+ Requires-Dist: pylegendmeta>=1.4.4
25
+ Requires-Dist: legend-pydataobj>=2.0.2
26
+ Requires-Dist: legend-lh5io>=0.2.6
26
27
  Requires-Dist: pip
27
28
  Provides-Extra: test
28
29
  Requires-Dist: legend-dataflow-scripts; extra == "test"
@@ -1,9 +1,10 @@
1
1
  colorlog
2
- dbetto>=1.2.3
3
- pygama>=2.3.8
4
- dspeed>=2.0
5
- pylegendmeta>=1.2.5
6
- legend-pydataobj>=1.16
2
+ dbetto>=1.3.6
3
+ pygama>=2.3.10
4
+ dspeed>=2.1.4
5
+ pylegendmeta>=1.4.4
6
+ legend-pydataobj>=2.0.2
7
+ legend-lh5io>=0.2.6
7
8
  pip
8
9
 
9
10
  [dev]
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.3.1'
22
- __version_tuple__ = version_tuple = (0, 3, 1)
21
+ __version__ = version = '0.3.2'
22
+ __version_tuple__ = version_tuple = (0, 3, 2)
23
23
 
24
- __commit_id__ = commit_id = 'g67f81227e'
24
+ __commit_id__ = commit_id = 'g30a72af68'
@@ -5,10 +5,11 @@ import pickle as pkl
5
5
  import time
6
6
  from pathlib import Path
7
7
 
8
+ import lh5
8
9
  import numpy as np
9
10
  import pygama.math.distributions as pmd # noqa: F401
10
11
  from dbetto.catalog import Props
11
- from lgdo import Array, Table, lh5
12
+ from lgdo import Array, Table
12
13
  from pygama.pargen.data_cleaning import generate_cuts
13
14
  from pygama.pargen.dplms_ge_dict import dplms_ge_dict
14
15
  from pygama.pargen.dsp_optimize import run_one_dsp
@@ -6,13 +6,13 @@ import time
6
6
  import warnings
7
7
  from pathlib import Path
8
8
 
9
+ import lh5
9
10
  import numpy as np
10
11
  import pygama.pargen.energy_optimisation as om # noqa: F401
11
12
  import sklearn.gaussian_process.kernels as ker
12
13
  from dbetto.catalog import Props
13
14
  from dspeed import build_dsp
14
15
  from dspeed.units import unit_registry as ureg
15
- from lgdo import lh5
16
16
  from pygama.math.distributions import hpge_peak
17
17
  from pygama.pargen.dsp_optimize import (
18
18
  BayesianOptimizer,
@@ -371,7 +371,7 @@ def par_geds_dsp_eopt() -> None:
371
371
  n_iter=opt_dict["n_iter"],
372
372
  )
373
373
 
374
- Props.add_to(db_dict, out_param_dict)
374
+ db_dict = Props.add_to(db_dict, out_param_dict)
375
375
 
376
376
  # db_dict.update(out_param_dict)
377
377
 
@@ -9,12 +9,12 @@ from bisect import bisect_left
9
9
  from pathlib import Path
10
10
 
11
11
  import lgdo
12
+ import lh5
12
13
  import numpy as np
13
14
  import pygama.math.histogram as pgh
14
15
  import pygama.pargen.energy_cal as pgc
15
16
  from dbetto.catalog import Props
16
17
  from dspeed import build_dsp
17
- from lgdo import lh5
18
18
  from pygama.pargen.data_cleaning import generate_cuts, get_keys
19
19
 
20
20
  from ....utils import build_log, get_pulser_mask
@@ -5,11 +5,11 @@ import pickle as pkl
5
5
  import time
6
6
  from pathlib import Path
7
7
 
8
+ import lh5
8
9
  import numpy as np
9
10
  import pygama.pargen.noise_optimization as pno
10
11
  from dbetto.catalog import Props
11
12
  from dspeed import build_dsp
12
- from lgdo import lh5
13
13
  from pygama.pargen.data_cleaning import generate_cuts, get_cut_indexes
14
14
 
15
15
  from ....utils import build_log
@@ -5,10 +5,10 @@ import copy
5
5
  import pickle as pkl
6
6
  from pathlib import Path
7
7
 
8
+ import lh5
8
9
  import numpy as np
9
10
  from dbetto.catalog import Props
10
11
  from dspeed import build_dsp
11
- from lgdo import lh5
12
12
  from pygama.pargen.data_cleaning import get_cut_indexes
13
13
  from pygama.pargen.pz_correct import PZCorrect
14
14
 
@@ -4,8 +4,8 @@ import argparse
4
4
  import pickle as pkl
5
5
  from pathlib import Path
6
6
 
7
+ import lh5
7
8
  from dbetto.catalog import Props
8
- from lgdo import lh5
9
9
  from sklearn.svm import SVC
10
10
 
11
11
  from ....utils import build_log
@@ -7,13 +7,13 @@ import warnings
7
7
  from datetime import datetime
8
8
  from pathlib import Path
9
9
 
10
+ import lh5
10
11
  import matplotlib as mpl
11
12
  import matplotlib.pyplot as plt
12
13
  import numpy as np
13
14
  import pygama.math.distributions as pgf
14
15
  import pygama.math.histogram as pgh
15
16
  from dbetto.catalog import Props
16
- from lgdo import lh5
17
17
  from matplotlib.colors import LogNorm
18
18
  from pygama.math.distributions import nb_poly
19
19
  from pygama.pargen.data_cleaning import get_mode_stdev
@@ -11,7 +11,7 @@ from pathlib import Path
11
11
 
12
12
  import numpy as np
13
13
  from dbetto.catalog import Props
14
- from lgdo.lh5 import ls
14
+ from lh5 import ls
15
15
  from pygama.pargen.data_cleaning import (
16
16
  generate_cut_classifiers,
17
17
  get_keys,
@@ -7,11 +7,11 @@ import warnings
7
7
  from multiprocessing import Pool
8
8
  from pathlib import Path
9
9
 
10
+ import lh5
10
11
  import numpy as np
11
12
  from dbetto import TextDB
12
13
  from dbetto.catalog import Props
13
14
  from dspeed import build_dsp
14
- from lgdo import lh5
15
15
 
16
16
  from ..utils import alias_table, build_log
17
17
 
@@ -5,9 +5,9 @@ import json
5
5
  import time
6
6
  from pathlib import Path
7
7
 
8
+ import lh5
9
+ from dbetto import TextDB
8
10
  from dbetto.catalog import Props
9
- from legendmeta import TextDB
10
- from lgdo import lh5
11
11
  from pygama.hit.build_hit import build_hit
12
12
 
13
13
  from ..utils import alias_table, build_log
@@ -96,7 +96,7 @@ def build_tier_hit() -> None:
96
96
  hit_cfg = Props.read_from(file)
97
97
 
98
98
  # get pars (to override hit config)
99
- Props.add_to(hit_cfg, pars_dict.get(chan, {}).copy())
99
+ hit_cfg = Props.add_to(hit_cfg, pars_dict.get(chan, {}).copy())
100
100
 
101
101
  if chan in table_map:
102
102
  input_tbl_name = table_map[chan] if table_map is not None else chan + "/dsp"
@@ -203,7 +203,7 @@ def build_tier_hit_single_channel() -> None:
203
203
  )
204
204
 
205
205
  hit_cfg = Props.read_from(chan_cfg_map)
206
- Props.add_to(hit_cfg, pars_dict.copy())
206
+ hit_cfg = Props.add_to(hit_cfg, pars_dict.copy())
207
207
 
208
208
  log.info("running build_hit()...")
209
209
  start = time.time()
@@ -4,9 +4,9 @@ import argparse
4
4
  import logging
5
5
  from pathlib import Path
6
6
 
7
+ import lh5
7
8
  import numpy as np
8
9
  from dbetto.catalog import Props
9
- from lgdo import lh5
10
10
  from pygama.flow.file_db import FileDB
11
11
 
12
12