shepherd-data 2023.8.7__tar.gz → 2023.9.0__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.
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/PKG-INFO +23 -62
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/README.md +9 -61
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/setup.cfg +6 -6
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data/__init__.py +1 -1
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data/cli.py +2 -2
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data/reader.py +3 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data.egg-info/PKG-INFO +23 -62
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data.egg-info/requires.txt +4 -4
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/pyproject.toml +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data/debug_resampler.py +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data/ivonne.py +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data/mppt.py +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data.egg-info/SOURCES.txt +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data.egg-info/dependency_links.txt +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data.egg-info/entry_points.txt +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data.egg-info/top_level.txt +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data.egg-info/zip-safe +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/tests/__init__.py +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/tests/conftest.py +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/tests/test_cli.py +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/tests/test_cli_downsample.py +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/tests/test_cli_extract.py +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/tests/test_cli_plot.py +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/tests/test_cli_validate.py +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/tests/test_examples.py +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/tests/test_ivonne.py +0 -0
- {shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/tests/test_reader.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: shepherd_data
|
|
3
|
-
Version: 2023.
|
|
3
|
+
Version: 2023.9.0
|
|
4
4
|
Summary: Programming- and CLI-Interface for the h5-dataformat of the Shepherd-Testbed
|
|
5
5
|
Home-page: https://pypi.org/project/shepherd-data/
|
|
6
6
|
Author: Ingmar Splitt, Kai Geissdoerfer
|
|
@@ -30,89 +30,50 @@ Classifier: Operating System :: OS Independent
|
|
|
30
30
|
Classifier: Natural Language :: English
|
|
31
31
|
Requires-Python: >=3.7
|
|
32
32
|
Description-Content-Type: text/markdown
|
|
33
|
+
Requires-Dist: h5py
|
|
34
|
+
Requires-Dist: numpy
|
|
35
|
+
Requires-Dist: pyYAML
|
|
36
|
+
Requires-Dist: shepherd-core[elf,inventory]
|
|
37
|
+
Requires-Dist: click
|
|
38
|
+
Requires-Dist: matplotlib
|
|
39
|
+
Requires-Dist: pandas
|
|
40
|
+
Requires-Dist: scipy
|
|
41
|
+
Requires-Dist: tqdm
|
|
33
42
|
Provides-Extra: dev
|
|
43
|
+
Requires-Dist: shepherd-core[dev]; extra == "dev"
|
|
44
|
+
Requires-Dist: pandas-stubs; extra == "dev"
|
|
34
45
|
Provides-Extra: test
|
|
46
|
+
Requires-Dist: shepherd-core[test]; extra == "test"
|
|
47
|
+
Requires-Dist: pytest-click; extra == "test"
|
|
35
48
|
|
|
36
|
-
#
|
|
49
|
+
# Data Module
|
|
37
50
|
|
|
38
51
|
[](https://pypi.org/project/shepherd_data)
|
|
39
52
|
[](https://github.com/orgua/shepherd-datalib/actions/workflows/python-app.yml)
|
|
40
53
|
[](https://github.com/psf/black)
|
|
41
54
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
---
|
|
55
|
+
**Documentation**: <https://orgua.github.io/shepherd/external/shepherd_data.html>
|
|
45
56
|
|
|
46
|
-
**
|
|
57
|
+
**Source Code**: <https://github.com/orgua/shepherd-datalib>
|
|
47
58
|
|
|
48
|
-
**
|
|
59
|
+
**Main Project**: <https://github.com/orgua/shepherd>
|
|
49
60
|
|
|
50
61
|
---
|
|
51
62
|
|
|
63
|
+
This Python Module eases the handling of hdf5-recordings used by the [shepherd](https://github.com/orgua/shepherd)-testbed. Users can read, validate and create files and also extract, down-sample and plot information.
|
|
64
|
+
|
|
52
65
|
## Installation
|
|
53
66
|
|
|
54
67
|
### PIP - Online
|
|
55
68
|
|
|
56
69
|
```shell
|
|
57
|
-
pip3 install shepherd-data
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### PIP - Offline
|
|
61
|
-
|
|
62
|
-
- clone repository
|
|
63
|
-
- navigate shell into directory
|
|
64
|
-
- install local module
|
|
65
|
-
|
|
66
|
-
```shell
|
|
67
|
-
git clone https://github.com/orgua/shepherd-datalib
|
|
68
|
-
cd .\shepherd-datalib
|
|
69
|
-
|
|
70
|
-
pip3 install ./
|
|
70
|
+
pip3 install shepherd-data -U
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### PipEnv
|
|
76
|
-
|
|
77
|
-
- clone repository
|
|
78
|
-
- navigate shell into directory
|
|
79
|
-
- install environment
|
|
80
|
-
- activate shell
|
|
81
|
-
- optional
|
|
82
|
-
- update pipenv (optional)
|
|
83
|
-
- add special packages with `-dev` switch
|
|
84
|
-
|
|
73
|
+
For bleeding-edge-features or dev-work it is possible to install directly from GitHub-Sources (here `dev`-branch):
|
|
85
74
|
|
|
86
75
|
```Shell
|
|
87
|
-
|
|
88
|
-
cd .\shepherd-datalib
|
|
89
|
-
|
|
90
|
-
pipenv install --dev
|
|
91
|
-
pipenv shell
|
|
92
|
-
|
|
93
|
-
pipenv update
|
|
94
|
-
pipenv install --dev pytest
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### running Testbench
|
|
98
|
-
|
|
99
|
-
- run pytest
|
|
100
|
-
|
|
101
|
-
```shell
|
|
102
|
-
pytest
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
### code coverage (with pytest)
|
|
106
|
-
|
|
107
|
-
- run coverage
|
|
108
|
-
- check results (in browser `./htmlcov/index.html`)
|
|
109
|
-
|
|
110
|
-
```shell
|
|
111
|
-
coverage run -m pytest
|
|
112
|
-
|
|
113
|
-
coverage html
|
|
114
|
-
# or simpler
|
|
115
|
-
coverage report
|
|
76
|
+
pip install git+https://github.com/orgua/shepherd-datalib.git@dev#subdirectory=shepherd_data -U
|
|
116
77
|
```
|
|
117
78
|
|
|
118
79
|
## Programming Interface
|
|
@@ -1,83 +1,31 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Data Module
|
|
2
2
|
|
|
3
3
|
[](https://pypi.org/project/shepherd_data)
|
|
4
4
|
[](https://github.com/orgua/shepherd-datalib/actions/workflows/python-app.yml)
|
|
5
5
|
[](https://github.com/psf/black)
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
---
|
|
7
|
+
**Documentation**: <https://orgua.github.io/shepherd/external/shepherd_data.html>
|
|
10
8
|
|
|
11
|
-
**
|
|
9
|
+
**Source Code**: <https://github.com/orgua/shepherd-datalib>
|
|
12
10
|
|
|
13
|
-
**
|
|
11
|
+
**Main Project**: <https://github.com/orgua/shepherd>
|
|
14
12
|
|
|
15
13
|
---
|
|
16
14
|
|
|
15
|
+
This Python Module eases the handling of hdf5-recordings used by the [shepherd](https://github.com/orgua/shepherd)-testbed. Users can read, validate and create files and also extract, down-sample and plot information.
|
|
16
|
+
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
19
|
### PIP - Online
|
|
20
20
|
|
|
21
21
|
```shell
|
|
22
|
-
pip3 install shepherd-data
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### PIP - Offline
|
|
26
|
-
|
|
27
|
-
- clone repository
|
|
28
|
-
- navigate shell into directory
|
|
29
|
-
- install local module
|
|
30
|
-
|
|
31
|
-
```shell
|
|
32
|
-
git clone https://github.com/orgua/shepherd-datalib
|
|
33
|
-
cd .\shepherd-datalib
|
|
34
|
-
|
|
35
|
-
pip3 install ./
|
|
22
|
+
pip3 install shepherd-data -U
|
|
36
23
|
```
|
|
37
24
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
### PipEnv
|
|
41
|
-
|
|
42
|
-
- clone repository
|
|
43
|
-
- navigate shell into directory
|
|
44
|
-
- install environment
|
|
45
|
-
- activate shell
|
|
46
|
-
- optional
|
|
47
|
-
- update pipenv (optional)
|
|
48
|
-
- add special packages with `-dev` switch
|
|
49
|
-
|
|
25
|
+
For bleeding-edge-features or dev-work it is possible to install directly from GitHub-Sources (here `dev`-branch):
|
|
50
26
|
|
|
51
27
|
```Shell
|
|
52
|
-
|
|
53
|
-
cd .\shepherd-datalib
|
|
54
|
-
|
|
55
|
-
pipenv install --dev
|
|
56
|
-
pipenv shell
|
|
57
|
-
|
|
58
|
-
pipenv update
|
|
59
|
-
pipenv install --dev pytest
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### running Testbench
|
|
63
|
-
|
|
64
|
-
- run pytest
|
|
65
|
-
|
|
66
|
-
```shell
|
|
67
|
-
pytest
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### code coverage (with pytest)
|
|
71
|
-
|
|
72
|
-
- run coverage
|
|
73
|
-
- check results (in browser `./htmlcov/index.html`)
|
|
74
|
-
|
|
75
|
-
```shell
|
|
76
|
-
coverage run -m pytest
|
|
77
|
-
|
|
78
|
-
coverage html
|
|
79
|
-
# or simpler
|
|
80
|
-
coverage report
|
|
28
|
+
pip install git+https://github.com/orgua/shepherd-datalib.git@dev#subdirectory=shepherd_data -U
|
|
81
29
|
```
|
|
82
30
|
|
|
83
31
|
## Programming Interface
|
|
@@ -37,15 +37,15 @@ zip_safe = True
|
|
|
37
37
|
include_package_data = True
|
|
38
38
|
python_requires = >= 3.7
|
|
39
39
|
install_requires =
|
|
40
|
-
shepherd-core[elf,inventory]
|
|
41
|
-
click
|
|
42
40
|
h5py
|
|
43
|
-
matplotlib # full-version
|
|
44
41
|
numpy
|
|
45
|
-
pandas<2.0.0 # full-version
|
|
46
42
|
pyYAML
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
shepherd-core[elf,inventory]
|
|
44
|
+
click
|
|
45
|
+
matplotlib
|
|
46
|
+
pandas # V2 is OK
|
|
47
|
+
scipy
|
|
48
|
+
tqdm
|
|
49
49
|
|
|
50
50
|
[options.extras_require]
|
|
51
51
|
dev =
|
|
@@ -29,13 +29,13 @@ def path_to_flist(data_path: Path) -> List[Path]:
|
|
|
29
29
|
"""
|
|
30
30
|
data_path = Path(data_path).resolve()
|
|
31
31
|
h5files = []
|
|
32
|
-
if data_path.is_file() and data_path.suffix == ".h5":
|
|
32
|
+
if data_path.is_file() and data_path.suffix.lower() == ".h5":
|
|
33
33
|
h5files.append(data_path)
|
|
34
34
|
elif data_path.is_dir():
|
|
35
35
|
flist = os.listdir(data_path)
|
|
36
36
|
for file in flist:
|
|
37
37
|
fpath = data_path / str(file)
|
|
38
|
-
if not fpath.is_file() or ".h5" != fpath.suffix:
|
|
38
|
+
if not fpath.is_file() or ".h5" != fpath.suffix.lower():
|
|
39
39
|
continue
|
|
40
40
|
h5files.append(fpath)
|
|
41
41
|
return h5files
|
|
@@ -14,6 +14,7 @@ from matplotlib import pyplot as plt
|
|
|
14
14
|
from tqdm import trange
|
|
15
15
|
|
|
16
16
|
from shepherd_core import BaseReader
|
|
17
|
+
from shepherd_core.logger import logger
|
|
17
18
|
|
|
18
19
|
# import samplerate # TODO: just a test-fn for now
|
|
19
20
|
|
|
@@ -402,6 +403,7 @@ class Reader(BaseReader):
|
|
|
402
403
|
f".plot_{start_str}_to_{end_str}.png"
|
|
403
404
|
)
|
|
404
405
|
if plot_path.exists():
|
|
406
|
+
self._logger.warning("Plot exists, will skip & not overwrite!")
|
|
405
407
|
return
|
|
406
408
|
self._logger.info("Plot generated, will be saved to '%s'", plot_path.name)
|
|
407
409
|
fig = self.assemble_plot(data, width, height)
|
|
@@ -429,6 +431,7 @@ class Reader(BaseReader):
|
|
|
429
431
|
.with_suffix(f".multiplot_{start_str}_to_{end_str}.png")
|
|
430
432
|
)
|
|
431
433
|
if plot_path.exists():
|
|
434
|
+
logger.warning("Plot exists, will skip & not overwrite!")
|
|
432
435
|
return None
|
|
433
436
|
fig = Reader.assemble_plot(data, width, height)
|
|
434
437
|
plt.savefig(plot_path)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: shepherd-data
|
|
3
|
-
Version: 2023.
|
|
3
|
+
Version: 2023.9.0
|
|
4
4
|
Summary: Programming- and CLI-Interface for the h5-dataformat of the Shepherd-Testbed
|
|
5
5
|
Home-page: https://pypi.org/project/shepherd-data/
|
|
6
6
|
Author: Ingmar Splitt, Kai Geissdoerfer
|
|
@@ -30,89 +30,50 @@ Classifier: Operating System :: OS Independent
|
|
|
30
30
|
Classifier: Natural Language :: English
|
|
31
31
|
Requires-Python: >=3.7
|
|
32
32
|
Description-Content-Type: text/markdown
|
|
33
|
+
Requires-Dist: h5py
|
|
34
|
+
Requires-Dist: numpy
|
|
35
|
+
Requires-Dist: pyYAML
|
|
36
|
+
Requires-Dist: shepherd-core[elf,inventory]
|
|
37
|
+
Requires-Dist: click
|
|
38
|
+
Requires-Dist: matplotlib
|
|
39
|
+
Requires-Dist: pandas
|
|
40
|
+
Requires-Dist: scipy
|
|
41
|
+
Requires-Dist: tqdm
|
|
33
42
|
Provides-Extra: dev
|
|
43
|
+
Requires-Dist: shepherd-core[dev]; extra == "dev"
|
|
44
|
+
Requires-Dist: pandas-stubs; extra == "dev"
|
|
34
45
|
Provides-Extra: test
|
|
46
|
+
Requires-Dist: shepherd-core[test]; extra == "test"
|
|
47
|
+
Requires-Dist: pytest-click; extra == "test"
|
|
35
48
|
|
|
36
|
-
#
|
|
49
|
+
# Data Module
|
|
37
50
|
|
|
38
51
|
[](https://pypi.org/project/shepherd_data)
|
|
39
52
|
[](https://github.com/orgua/shepherd-datalib/actions/workflows/python-app.yml)
|
|
40
53
|
[](https://github.com/psf/black)
|
|
41
54
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
---
|
|
55
|
+
**Documentation**: <https://orgua.github.io/shepherd/external/shepherd_data.html>
|
|
45
56
|
|
|
46
|
-
**
|
|
57
|
+
**Source Code**: <https://github.com/orgua/shepherd-datalib>
|
|
47
58
|
|
|
48
|
-
**
|
|
59
|
+
**Main Project**: <https://github.com/orgua/shepherd>
|
|
49
60
|
|
|
50
61
|
---
|
|
51
62
|
|
|
63
|
+
This Python Module eases the handling of hdf5-recordings used by the [shepherd](https://github.com/orgua/shepherd)-testbed. Users can read, validate and create files and also extract, down-sample and plot information.
|
|
64
|
+
|
|
52
65
|
## Installation
|
|
53
66
|
|
|
54
67
|
### PIP - Online
|
|
55
68
|
|
|
56
69
|
```shell
|
|
57
|
-
pip3 install shepherd-data
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### PIP - Offline
|
|
61
|
-
|
|
62
|
-
- clone repository
|
|
63
|
-
- navigate shell into directory
|
|
64
|
-
- install local module
|
|
65
|
-
|
|
66
|
-
```shell
|
|
67
|
-
git clone https://github.com/orgua/shepherd-datalib
|
|
68
|
-
cd .\shepherd-datalib
|
|
69
|
-
|
|
70
|
-
pip3 install ./
|
|
70
|
+
pip3 install shepherd-data -U
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### PipEnv
|
|
76
|
-
|
|
77
|
-
- clone repository
|
|
78
|
-
- navigate shell into directory
|
|
79
|
-
- install environment
|
|
80
|
-
- activate shell
|
|
81
|
-
- optional
|
|
82
|
-
- update pipenv (optional)
|
|
83
|
-
- add special packages with `-dev` switch
|
|
84
|
-
|
|
73
|
+
For bleeding-edge-features or dev-work it is possible to install directly from GitHub-Sources (here `dev`-branch):
|
|
85
74
|
|
|
86
75
|
```Shell
|
|
87
|
-
|
|
88
|
-
cd .\shepherd-datalib
|
|
89
|
-
|
|
90
|
-
pipenv install --dev
|
|
91
|
-
pipenv shell
|
|
92
|
-
|
|
93
|
-
pipenv update
|
|
94
|
-
pipenv install --dev pytest
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### running Testbench
|
|
98
|
-
|
|
99
|
-
- run pytest
|
|
100
|
-
|
|
101
|
-
```shell
|
|
102
|
-
pytest
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
### code coverage (with pytest)
|
|
106
|
-
|
|
107
|
-
- run coverage
|
|
108
|
-
- check results (in browser `./htmlcov/index.html`)
|
|
109
|
-
|
|
110
|
-
```shell
|
|
111
|
-
coverage run -m pytest
|
|
112
|
-
|
|
113
|
-
coverage html
|
|
114
|
-
# or simpler
|
|
115
|
-
coverage report
|
|
76
|
+
pip install git+https://github.com/orgua/shepherd-datalib.git@dev#subdirectory=shepherd_data -U
|
|
116
77
|
```
|
|
117
78
|
|
|
118
79
|
## Programming Interface
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shepherd_data-2023.8.7 → shepherd_data-2023.9.0}/shepherd_data.egg-info/dependency_links.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
|