Skip to content

Commit b542302

Browse files
Remove quantities and use external library frequenz.quantities
Signed-off-by: Elzbieta Kotulska <[email protected]>
1 parent 7ea2653 commit b542302

File tree

4 files changed

+3
-2274
lines changed

4 files changed

+3
-2274
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ dependencies = [
3131
# (plugins.mkdocstrings.handlers.python.import)
3232
"frequenz-client-microgrid >= 0.5.1, < 0.6.0",
3333
"frequenz-channels >= 1.2.0, < 2.0.0",
34+
"frequenz-quantities == 1.0.0rc1",
3435
"networkx >= 2.8, < 4",
3536
"numpy >= 1.26.4, < 2",
3637
"typing_extensions >= 4.6.1, < 5",

src/frequenz/sdk/timeseries/__init__.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,6 @@
4040
from ._fuse import Fuse
4141
from ._moving_window import MovingWindow
4242
from ._periodic_feature_extractor import PeriodicFeatureExtractor
43-
from ._quantities import (
44-
Current,
45-
Energy,
46-
Frequency,
47-
Percentage,
48-
Power,
49-
Quantity,
50-
Temperature,
51-
Voltage,
52-
)
5343
from ._resampling import ResamplerConfig
5444

5545
__all__ = [
@@ -62,15 +52,4 @@
6252
"Sample",
6353
"Sample3Phase",
6454
"UNIX_EPOCH",
65-
#
66-
# Quantities
67-
#
68-
"Quantity",
69-
"Current",
70-
"Energy",
71-
"Power",
72-
"Temperature",
73-
"Voltage",
74-
"Frequency",
75-
"Percentage",
7655
]

0 commit comments

Comments
 (0)