umami-preprocessing 0.0.4__tar.gz → 0.0.6__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.
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/PKG-INFO +5 -5
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/pyproject.toml +4 -4
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/PKG-INFO +5 -5
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/requires.txt +4 -4
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/__init__.py +1 -1
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/classes/preprocessing_config.py +20 -5
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/README.md +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/setup.cfg +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/SOURCES.txt +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/dependency_links.txt +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/entry_points.txt +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/top_level.txt +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/classes/__init__.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/classes/components.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/classes/region.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/classes/resampling_config.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/classes/variable_config.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/logger.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/main.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/stages/__init__.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/stages/hist.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/stages/interpolation.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/stages/merging.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/stages/normalisation.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/stages/plot.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/stages/resampling.py +0 -0
- {umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/upp/utils.py +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: umami-preprocessing
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: Preprocessing for jet tagging
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/umami-hep/umami-preprocessing
|
|
7
7
|
Requires-Python: >=3.8
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
Requires-Dist: pyyaml-include==1.3
|
|
10
|
-
Requires-Dist: PyYAML==6.0
|
|
10
|
+
Requires-Dist: PyYAML==6.0.1
|
|
11
11
|
Requires-Dist: rich==12.6.0
|
|
12
|
-
Requires-Dist: scipy==1.
|
|
13
|
-
Requires-Dist: puma-hep==0.
|
|
14
|
-
Requires-Dist: atlas-ftag-tools==0.1.
|
|
12
|
+
Requires-Dist: scipy==1.10.1
|
|
13
|
+
Requires-Dist: puma-hep==0.3.0
|
|
14
|
+
Requires-Dist: atlas-ftag-tools==0.1.10
|
|
15
15
|
Requires-Dist: dotmap==1.3.30
|
|
16
16
|
Provides-Extra: dev
|
|
17
17
|
Requires-Dist: black==23.9.1; extra == "dev"
|
|
@@ -8,11 +8,11 @@ requires-python = ">=3.8"
|
|
|
8
8
|
|
|
9
9
|
dependencies = [
|
|
10
10
|
"pyyaml-include==1.3",
|
|
11
|
-
"PyYAML==6.0",
|
|
11
|
+
"PyYAML==6.0.1",
|
|
12
12
|
"rich==12.6.0",
|
|
13
|
-
"scipy==1.
|
|
14
|
-
"puma-hep==0.
|
|
15
|
-
"atlas-ftag-tools==0.1.
|
|
13
|
+
"scipy==1.10.1",
|
|
14
|
+
"puma-hep==0.3.0",
|
|
15
|
+
"atlas-ftag-tools==0.1.10",
|
|
16
16
|
"dotmap==1.3.30"
|
|
17
17
|
]
|
|
18
18
|
|
{umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/PKG-INFO
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: umami-preprocessing
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: Preprocessing for jet tagging
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/umami-hep/umami-preprocessing
|
|
7
7
|
Requires-Python: >=3.8
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
Requires-Dist: pyyaml-include==1.3
|
|
10
|
-
Requires-Dist: PyYAML==6.0
|
|
10
|
+
Requires-Dist: PyYAML==6.0.1
|
|
11
11
|
Requires-Dist: rich==12.6.0
|
|
12
|
-
Requires-Dist: scipy==1.
|
|
13
|
-
Requires-Dist: puma-hep==0.
|
|
14
|
-
Requires-Dist: atlas-ftag-tools==0.1.
|
|
12
|
+
Requires-Dist: scipy==1.10.1
|
|
13
|
+
Requires-Dist: puma-hep==0.3.0
|
|
14
|
+
Requires-Dist: atlas-ftag-tools==0.1.10
|
|
15
15
|
Requires-Dist: dotmap==1.3.30
|
|
16
16
|
Provides-Extra: dev
|
|
17
17
|
Requires-Dist: black==23.9.1; extra == "dev"
|
|
@@ -6,7 +6,7 @@ import logging as log
|
|
|
6
6
|
from copy import copy
|
|
7
7
|
from dataclasses import dataclass
|
|
8
8
|
from pathlib import Path
|
|
9
|
-
from subprocess import check_output
|
|
9
|
+
from subprocess import CalledProcessError, check_output
|
|
10
10
|
from typing import Literal
|
|
11
11
|
|
|
12
12
|
import yaml
|
|
@@ -15,6 +15,7 @@ from ftag import Cuts
|
|
|
15
15
|
from ftag.transform import Transform
|
|
16
16
|
from yamlinclude import YamlIncludeConstructor
|
|
17
17
|
|
|
18
|
+
from upp import __version__
|
|
18
19
|
from upp.classes.components import Components
|
|
19
20
|
from upp.classes.resampling_config import ResamplingConfig
|
|
20
21
|
from upp.classes.variable_config import VariableConfig
|
|
@@ -110,9 +111,16 @@ class PreprocessingConfig:
|
|
|
110
111
|
)
|
|
111
112
|
|
|
112
113
|
# copy config
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
try:
|
|
115
|
+
git_hash = check_output(
|
|
116
|
+
["git", "rev-parse", "--short", "HEAD"], cwd=Path(__file__).parent
|
|
117
|
+
)
|
|
118
|
+
self.git_hash = git_hash.decode("ascii").strip()
|
|
119
|
+
self.config["pp_git_hash"] = self.git_hash
|
|
120
|
+
except CalledProcessError:
|
|
121
|
+
log.warning("Could not get git hash")
|
|
122
|
+
self.git_hash = __version__
|
|
123
|
+
self.config["pp_git_hash"] = self.git_hash
|
|
116
124
|
self.copy_config()
|
|
117
125
|
|
|
118
126
|
@classmethod
|
|
@@ -215,7 +223,14 @@ class PreprocessingConfig:
|
|
|
215
223
|
self.general = general
|
|
216
224
|
self.sampling = DotMap(self.config["umami"]["sampling"], _dynamic=False)
|
|
217
225
|
self.sampling.class_labels = [flav.name for flav in self.components.flavours]
|
|
218
|
-
|
|
226
|
+
if self.config["umami"].get("parameters", None) is not None:
|
|
227
|
+
self.parameters = self.config["umami"]["parameters"]
|
|
228
|
+
else:
|
|
229
|
+
self.parameters = {}
|
|
230
|
+
self.parameters[""] = self.out_dir
|
|
231
|
+
self.parameters[""] = self.out_dir
|
|
232
|
+
if self.config["umami"].get("convert_to_tfrecord", None) is not None:
|
|
233
|
+
self.general.convert_to_tfrecord = self.config["umami"]["convert_to_tfrecord"]
|
|
219
234
|
return self
|
|
220
235
|
|
|
221
236
|
def get_file_name(self, option, **_):
|
|
File without changes
|
|
File without changes
|
{umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{umami-preprocessing-0.0.4 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|