umami-preprocessing 0.0.5__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.5 → umami-preprocessing-0.0.6}/PKG-INFO +1 -1
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/PKG-INFO +1 -1
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/__init__.py +1 -1
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/classes/preprocessing_config.py +12 -4
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/README.md +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/pyproject.toml +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/setup.cfg +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/SOURCES.txt +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/dependency_links.txt +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/entry_points.txt +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/requires.txt +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/top_level.txt +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/classes/__init__.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/classes/components.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/classes/region.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/classes/resampling_config.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/classes/variable_config.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/logger.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/main.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/stages/__init__.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/stages/hist.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/stages/interpolation.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/stages/merging.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/stages/normalisation.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/stages/plot.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/stages/resampling.py +0 -0
- {umami-preprocessing-0.0.5 → umami-preprocessing-0.0.6}/upp/utils.py +0 -0
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{umami-preprocessing-0.0.5 → 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.5 → umami-preprocessing-0.0.6}/umami_preprocessing.egg-info/requires.txt
RENAMED
|
File without changes
|
{umami-preprocessing-0.0.5 → 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
|