shepherd-data 2024.7.4__tar.gz → 2024.8.1__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-2024.7.4 → shepherd_data-2024.8.1}/PKG-INFO +2 -2
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/pyproject.toml +1 -1
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/shepherd_data/__init__.py +1 -1
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/shepherd_data/reader.py +23 -25
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/shepherd_data.egg-info/PKG-INFO +2 -2
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/shepherd_data.egg-info/requires.txt +1 -1
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/README.md +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/setup.cfg +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/shepherd_data/cli.py +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/shepherd_data/ivonne.py +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/shepherd_data/mppt.py +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/shepherd_data.egg-info/SOURCES.txt +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/shepherd_data.egg-info/dependency_links.txt +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/shepherd_data.egg-info/entry_points.txt +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/shepherd_data.egg-info/top_level.txt +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/shepherd_data.egg-info/zip-safe +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/tests/test_cli.py +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/tests/test_cli_downsample.py +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/tests/test_cli_extract.py +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/tests/test_cli_plot.py +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/tests/test_cli_validate.py +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/tests/test_examples.py +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/tests/test_ivonne.py +0 -0
- {shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/tests/test_reader.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: shepherd_data
|
|
3
|
-
Version: 2024.
|
|
3
|
+
Version: 2024.8.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.8.1
|
|
39
39
|
Requires-Dist: tqdm
|
|
40
40
|
Provides-Extra: elf
|
|
41
41
|
Requires-Dist: shepherd-core[elf]; extra == "elf"
|
|
@@ -399,34 +399,32 @@ class Reader(CoreReader):
|
|
|
399
399
|
if isinstance(data, dict):
|
|
400
400
|
data = [data]
|
|
401
401
|
if only_pwr:
|
|
402
|
-
fig = plt.
|
|
402
|
+
fig, ax = plt.subplots(1, 1, figsize=(width, height), layout="tight")
|
|
403
|
+
axs = [ax]
|
|
403
404
|
fig.suptitle("Power-Trace")
|
|
404
|
-
plt.xlabel("time [s]")
|
|
405
|
-
plt.ylabel("power [mW]")
|
|
406
|
-
for date in data:
|
|
407
|
-
plt.plot(
|
|
408
|
-
date["time"], date["voltage"] * date["current"] * 10**3, label=date["name"]
|
|
409
|
-
)
|
|
410
|
-
if len(data) > 1:
|
|
411
|
-
plt.legend(loc="lower center", ncol=len(data))
|
|
412
405
|
else:
|
|
413
|
-
fig,
|
|
406
|
+
fig, axs = plt.subplots(3, 1, sharex="all", figsize=(width, height), layout="tight")
|
|
414
407
|
fig.suptitle("Voltage, current & power")
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
408
|
+
axs[0].set_ylabel("voltage [V]")
|
|
409
|
+
axs[1].set_ylabel("current [mA]")
|
|
410
|
+
# last axis is set below
|
|
411
|
+
|
|
412
|
+
for date in data:
|
|
413
|
+
if not only_pwr:
|
|
414
|
+
axs[0].plot(date["time"], date["voltage"], label=date["name"])
|
|
415
|
+
axs[1].plot(date["time"], date["current"] * 10**3, label=date["name"])
|
|
416
|
+
axs[-1].plot(
|
|
417
|
+
date["time"], date["voltage"] * date["current"] * 10**3, label=date["name"]
|
|
418
|
+
)
|
|
419
|
+
|
|
420
|
+
if len(data) > 1:
|
|
421
|
+
axs[0].legend(loc="lower center", ncol=len(data))
|
|
422
|
+
axs[-1].set_xlabel("time [s]")
|
|
423
|
+
axs[-1].set_ylabel("power [mW]")
|
|
424
|
+
for ax in axs:
|
|
425
|
+
# deactivates offset-creation for ax-ticks
|
|
426
|
+
ax.get_yaxis().get_major_formatter().set_useOffset(False)
|
|
427
|
+
ax.get_xaxis().get_major_formatter().set_useOffset(False)
|
|
430
428
|
return fig
|
|
431
429
|
|
|
432
430
|
def plot_to_file(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: shepherd_data
|
|
3
|
-
Version: 2024.
|
|
3
|
+
Version: 2024.8.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.8.1
|
|
39
39
|
Requires-Dist: tqdm
|
|
40
40
|
Provides-Extra: elf
|
|
41
41
|
Requires-Dist: shepherd-core[elf]; extra == "elf"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shepherd_data-2024.7.4 → shepherd_data-2024.8.1}/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
|