Skip to content

Commit f3d594e

Browse files
matthias-wende-frequenzllucax
authored andcommitted
Expose resampling-related exceptions publicly
We expose `ResamplingError` and `SourceStoppedError` as users might need to catch these errors. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 15b41ad commit f3d594e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/frequenz/sdk/timeseries/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,19 @@
4242
from ._periodic_feature_extractor import PeriodicFeatureExtractor
4343
from ._resampling._base_types import SourceProperties
4444
from ._resampling._config import ResamplerConfig, ResamplingFunction
45+
from ._resampling._exceptions import ResamplingError, SourceStoppedError
4546

4647
__all__ = [
4748
"Bounds",
4849
"Fuse",
4950
"MovingWindow",
5051
"PeriodicFeatureExtractor",
51-
"ResamplerConfig",
5252
"ReceiverFetcher",
53+
"ResamplerConfig",
54+
"ResamplingError",
5355
"ResamplingFunction",
5456
"Sample",
5557
"Sample3Phase",
5658
"SourceProperties",
59+
"SourceStoppedError",
5760
]

0 commit comments

Comments
 (0)