shepherd-data 2024.4.2__py3-none-any.whl → 2024.7.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.
- shepherd_data/__init__.py +1 -1
- shepherd_data/cli.py +4 -2
- shepherd_data/ivonne.py +10 -1
- {shepherd_data-2024.4.2.dist-info → shepherd_data-2024.7.1.dist-info}/METADATA +2 -2
- shepherd_data-2024.7.1.dist-info/RECORD +11 -0
- {shepherd_data-2024.4.2.dist-info → shepherd_data-2024.7.1.dist-info}/WHEEL +1 -1
- shepherd_data-2024.4.2.dist-info/RECORD +0 -11
- {shepherd_data-2024.4.2.dist-info → shepherd_data-2024.7.1.dist-info}/entry_points.txt +0 -0
- {shepherd_data-2024.4.2.dist-info → shepherd_data-2024.7.1.dist-info}/top_level.txt +0 -0
- {shepherd_data-2024.4.2.dist-info → shepherd_data-2024.7.1.dist-info}/zip-safe +0 -0
shepherd_data/__init__.py
CHANGED
shepherd_data/cli.py
CHANGED
|
@@ -160,6 +160,7 @@ def extract(in_data: Path, ds_factor: float, separator: str) -> None:
|
|
|
160
160
|
type=click.STRING,
|
|
161
161
|
help="Set an individual csv-separator",
|
|
162
162
|
)
|
|
163
|
+
# TODO: a recursive option would help!
|
|
163
164
|
def extract_meta(in_data: Path, separator: str) -> None:
|
|
164
165
|
"""Extract metadata and logs from file or directory containing shepherd-recordings."""
|
|
165
166
|
files = path_to_flist(in_data)
|
|
@@ -168,11 +169,12 @@ def extract_meta(in_data: Path, separator: str) -> None:
|
|
|
168
169
|
logger.info("Extracting metadata & logs from '%s' ...", file.name)
|
|
169
170
|
# TODO: add default exports (user-centric) and allow specifying --all or specific ones
|
|
170
171
|
# TODO: could also be combined with other extractors (just have one)
|
|
171
|
-
# TODO: remove deprecated timesync; "shepherd-log", "dmesg", "exceptions"
|
|
172
172
|
try:
|
|
173
173
|
with Reader(file, verbose=verbose_level > 2) as shpr:
|
|
174
174
|
shpr.save_metadata()
|
|
175
|
-
|
|
175
|
+
csvs_depr = ["sysutil", "timesync"]
|
|
176
|
+
csvs = ["ptp", "sys_util", "pru_util"]
|
|
177
|
+
for element in csvs + csvs_depr:
|
|
176
178
|
if element in shpr.h5file:
|
|
177
179
|
shpr.save_csv(shpr[element], separator)
|
|
178
180
|
logs_depr = ["shepherd-log", "dmesg", "exceptions"]
|
shepherd_data/ivonne.py
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
"""file-reader with various converters to generate valid shepherd-data for emulation.
|
|
1
|
+
"""file-reader with various converters to generate valid shepherd-data for emulation.
|
|
2
|
+
|
|
3
|
+
IVonne uses the Shockley Diode Equation to estimate a model
|
|
4
|
+
I_D = I_S * ( e ^ ( U_D / n*U_T ) - 1 )
|
|
5
|
+
coeff_a = I_D = I_SC
|
|
6
|
+
coeff_b = I_S
|
|
7
|
+
coeff_c = 1 / n*U_T = q / n*k*T (constant)
|
|
8
|
+
|
|
9
|
+
literature: https://en.wikipedia.org/wiki/Shockley_diode_equation
|
|
10
|
+
"""
|
|
2
11
|
|
|
3
12
|
import errno
|
|
4
13
|
import logging
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: shepherd_data
|
|
3
|
-
Version: 2024.
|
|
3
|
+
Version: 2024.7.1
|
|
4
4
|
Summary: Programming- and CLI-Interface for the h5-dataformat of the Shepherd-Testbed
|
|
5
5
|
Author-email: Ingmar Splitt <ingmar.splitt@tu-dresden.de>
|
|
6
6
|
Maintainer-email: Ingmar Splitt <ingmar.splitt@tu-dresden.de>
|
|
@@ -35,7 +35,7 @@ Requires-Dist: numpy
|
|
|
35
35
|
Requires-Dist: pandas >=2.0.0
|
|
36
36
|
Requires-Dist: pyYAML
|
|
37
37
|
Requires-Dist: scipy
|
|
38
|
-
Requires-Dist: shepherd-core[inventory] >=2024.
|
|
38
|
+
Requires-Dist: shepherd-core[inventory] >=2024.7.1
|
|
39
39
|
Requires-Dist: tqdm
|
|
40
40
|
Provides-Extra: dev
|
|
41
41
|
Requires-Dist: shepherd-core[dev] ; extra == 'dev'
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
shepherd_data/__init__.py,sha256=D-QyEhYdKu0NrfxtHZmRg71QC6jFOoIsLJRiGSO2Ufg,352
|
|
2
|
+
shepherd_data/cli.py,sha256=21BzQMhPfHocpExmXb8BXTk58zZzc4Up7tLzjpyFwjI,15031
|
|
3
|
+
shepherd_data/ivonne.py,sha256=5EryExMQ8E8PTgX5xkZUyLqhvhCcLT17rdC0POv4NLI,11831
|
|
4
|
+
shepherd_data/mppt.py,sha256=588KSrLuJfNRKKnnL6ewePLi3zrwaO_PAZypikACrks,3925
|
|
5
|
+
shepherd_data/reader.py,sha256=JKTVemjH_6678MCNf2cDzRIsCyfD2B6CTUzBiG110QY,18531
|
|
6
|
+
shepherd_data-2024.7.1.dist-info/METADATA,sha256=RSM7L3RAj0zCeM9kX0X3KIz2KWgh3y4ZF2IaZordgtI,3387
|
|
7
|
+
shepherd_data-2024.7.1.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
|
8
|
+
shepherd_data-2024.7.1.dist-info/entry_points.txt,sha256=6PBfY36A1xNOdzLiz-Qoukya_UzFZAwOapwmRNnPeZ8,56
|
|
9
|
+
shepherd_data-2024.7.1.dist-info/top_level.txt,sha256=7-SCTY-TG1mLY72OVKCaqte1hy-X8woxknIUAD3OIxs,14
|
|
10
|
+
shepherd_data-2024.7.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
11
|
+
shepherd_data-2024.7.1.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
shepherd_data/__init__.py,sha256=EVDwIGGT7VHG4hZ8WScG5aUFIokNAxmd8fR0ZR22hmA,352
|
|
2
|
-
shepherd_data/cli.py,sha256=GD9yxRToqi5fDhfwPZrXQUGlRz5G65A9K1j3Kr6x-zI,14981
|
|
3
|
-
shepherd_data/ivonne.py,sha256=_tys7LNnUStj-zV56DZxxx3Ku-ILdrNJqLXst7PXcxU,11584
|
|
4
|
-
shepherd_data/mppt.py,sha256=588KSrLuJfNRKKnnL6ewePLi3zrwaO_PAZypikACrks,3925
|
|
5
|
-
shepherd_data/reader.py,sha256=JKTVemjH_6678MCNf2cDzRIsCyfD2B6CTUzBiG110QY,18531
|
|
6
|
-
shepherd_data-2024.4.2.dist-info/METADATA,sha256=R9-bdFb5pm8FR8Rg6CTwInx-LOIifJHyBRIP0uxoj3s,3387
|
|
7
|
-
shepherd_data-2024.4.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
8
|
-
shepherd_data-2024.4.2.dist-info/entry_points.txt,sha256=6PBfY36A1xNOdzLiz-Qoukya_UzFZAwOapwmRNnPeZ8,56
|
|
9
|
-
shepherd_data-2024.4.2.dist-info/top_level.txt,sha256=7-SCTY-TG1mLY72OVKCaqte1hy-X8woxknIUAD3OIxs,14
|
|
10
|
-
shepherd_data-2024.4.2.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
11
|
-
shepherd_data-2024.4.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|