downsampler 0.4.0__tar.gz → 0.4.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.
- {downsampler-0.4.0/src/downsampler.egg-info → downsampler-0.4.1}/PKG-INFO +1 -1
- {downsampler-0.4.0 → downsampler-0.4.1}/pyproject.toml +1 -1
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/__init__.py +9 -1
- {downsampler-0.4.0 → downsampler-0.4.1/src/downsampler.egg-info}/PKG-INFO +1 -1
- {downsampler-0.4.0 → downsampler-0.4.1}/LICENSE +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/README.md +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/setup.cfg +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/aggregators.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/config.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/core.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/edges.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/fidelity/__init__.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/fidelity/comparison.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/fidelity/metrics.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/gaps.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/lttb.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/m4.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/ranged.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler/utils.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler.egg-info/SOURCES.txt +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler.egg-info/dependency_links.txt +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler.egg-info/requires.txt +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/src/downsampler.egg-info/top_level.txt +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/tests/test_aggregators.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/tests/test_core.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/tests/test_edges.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/tests/test_fidelity.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/tests/test_gaps.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/tests/test_lttb.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/tests/test_m4.py +0 -0
- {downsampler-0.4.0 → downsampler-0.4.1}/tests/test_ranged.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: downsampler
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Timeseries DataFrame downsampling with LTTB, aggregation methods, gap handling, and fidelity testing
|
|
5
5
|
Author-email: Eelco Doornbos <eelco.doornbos@knmi.nl>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "downsampler"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.1"
|
|
8
8
|
description = "Timeseries DataFrame downsampling with LTTB, aggregation methods, gap handling, and fidelity testing"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -31,6 +31,8 @@ Example:
|
|
|
31
31
|
>>> result = downsample_dataframe(df, target_cadence='5min', config=config)
|
|
32
32
|
"""
|
|
33
33
|
|
|
34
|
+
import importlib.metadata as _metadata
|
|
35
|
+
|
|
34
36
|
from downsampler.config import (
|
|
35
37
|
AggregationMethod,
|
|
36
38
|
EdgeHandling,
|
|
@@ -66,7 +68,13 @@ from downsampler.ranged import (
|
|
|
66
68
|
DataFetcher,
|
|
67
69
|
)
|
|
68
70
|
|
|
69
|
-
|
|
71
|
+
# Single source of truth is pyproject.toml; read it back from the installed
|
|
72
|
+
# distribution so this constant can never drift from the released version
|
|
73
|
+
# (it sat at 0.3.1 through the 0.4.0 release).
|
|
74
|
+
try:
|
|
75
|
+
__version__ = _metadata.version("downsampler")
|
|
76
|
+
except _metadata.PackageNotFoundError: # running from a source tree, not installed
|
|
77
|
+
__version__ = "unknown"
|
|
70
78
|
|
|
71
79
|
__all__ = [
|
|
72
80
|
# Config
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: downsampler
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Timeseries DataFrame downsampling with LTTB, aggregation methods, gap handling, and fidelity testing
|
|
5
5
|
Author-email: Eelco Doornbos <eelco.doornbos@knmi.nl>
|
|
6
6
|
License-Expression: MIT
|
|
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
|
|
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
|