tonik 0.1.18__tar.gz → 0.1.19__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.
- {tonik-0.1.18 → tonik-0.1.19}/.gitignore +1 -1
- {tonik-0.1.18 → tonik-0.1.19}/PKG-INFO +1 -1
- {tonik-0.1.18 → tonik-0.1.19}/pixi.lock +2 -2
- {tonik-0.1.18 → tonik-0.1.19}/pyproject.toml +1 -1
- {tonik-0.1.18 → tonik-0.1.19}/src/tonik/xarray2netcdf.py +1 -1
- {tonik-0.1.18 → tonik-0.1.19}/src/tonik/xarray2zarr.py +1 -1
- {tonik-0.1.18 → tonik-0.1.19}/.devcontainer/devcontainer.json +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/.gitattributes +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/HOW_TO_RELEASE.md +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/LICENSE +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/README.md +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/grafana_example/Dockerfile_api +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/grafana_example/Dockerfile_grafana +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/grafana_example/dashboards/demo_dashboard.json +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/grafana_example/docker-compose.yml +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/grafana_example/grafana.ini +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/grafana_example/provisioning/dashboards/default.yaml +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/grafana_example/provisioning/datasources/default.yaml +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/mkdocs.yml +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/pyproject.toml~ +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/src/tonik/__init__.py +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/src/tonik/api.py +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/src/tonik/grafana_annotations.py +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/src/tonik/package_data/index.html +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/src/tonik/package_data/whakaari_labels.json +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/src/tonik/storage.py +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/src/tonik/utils.py +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/tests/backend_speed_test.py +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/tests/conftest.py +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/tests/test_api.py +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/tests/test_save.py +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/tests/test_storage.py +0 -0
- {tonik-0.1.18 → tonik-0.1.19}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tonik
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.19
|
|
4
4
|
Summary: Store time series data as HDF5 files and access them through an API.
|
|
5
5
|
Project-URL: Homepage, https://tsc-tools.github.io/tonik
|
|
6
6
|
Project-URL: Issues, https://github.com/tsc-tools/tonik/issues
|
|
@@ -3681,8 +3681,8 @@ packages:
|
|
|
3681
3681
|
timestamp: 1763054914403
|
|
3682
3682
|
- pypi: ./
|
|
3683
3683
|
name: tonik
|
|
3684
|
-
version: 0.1.
|
|
3685
|
-
sha256:
|
|
3684
|
+
version: 0.1.19
|
|
3685
|
+
sha256: 03b2f4ca6b94c1b2cf29416606b0ac3bc812c1217ce395773496dfad962da544
|
|
3686
3686
|
requires_dist:
|
|
3687
3687
|
- h5py>=3.8
|
|
3688
3688
|
- datashader>=0.14
|
|
@@ -102,7 +102,7 @@ def xarray2netcdf(xArray, fdir, group="original", timedim="datetime",
|
|
|
102
102
|
metaGrp.resize_dimension('endtime', ldata.shape[0] + 1)
|
|
103
103
|
ldata[-1] = times[-1]
|
|
104
104
|
old_resolution = metaGrp['resolution'][()]
|
|
105
|
-
if old_resolution
|
|
105
|
+
if abs(old_resolution - resolution) > 1e-5:
|
|
106
106
|
raise ValueError(f"Resolution mismatch for {featureName}: "
|
|
107
107
|
f"{old_resolution} != {resolution}")
|
|
108
108
|
|
|
@@ -197,7 +197,7 @@ def _update_meta_data(fout: str,
|
|
|
197
197
|
res_da_old = meta.get('resolution').values[()]
|
|
198
198
|
new_update = xr.concat([update_old, new_update], dim='update')
|
|
199
199
|
new_last = xr.concat([last_old, new_last], dim='endtime')
|
|
200
|
-
if resolution
|
|
200
|
+
if abs(resolution - res_da_old) > 1e-5:
|
|
201
201
|
raise ValueError(f"Resolution mismatch for {fout}: "
|
|
202
202
|
f"{res_da_old} != {resolution}")
|
|
203
203
|
res_da = xr.DataArray(resolution, name='resolution')
|
|
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
|