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.
Files changed (33) hide show
  1. {tonik-0.1.18 → tonik-0.1.19}/.gitignore +1 -1
  2. {tonik-0.1.18 → tonik-0.1.19}/PKG-INFO +1 -1
  3. {tonik-0.1.18 → tonik-0.1.19}/pixi.lock +2 -2
  4. {tonik-0.1.18 → tonik-0.1.19}/pyproject.toml +1 -1
  5. {tonik-0.1.18 → tonik-0.1.19}/src/tonik/xarray2netcdf.py +1 -1
  6. {tonik-0.1.18 → tonik-0.1.19}/src/tonik/xarray2zarr.py +1 -1
  7. {tonik-0.1.18 → tonik-0.1.19}/.devcontainer/devcontainer.json +0 -0
  8. {tonik-0.1.18 → tonik-0.1.19}/.gitattributes +0 -0
  9. {tonik-0.1.18 → tonik-0.1.19}/HOW_TO_RELEASE.md +0 -0
  10. {tonik-0.1.18 → tonik-0.1.19}/LICENSE +0 -0
  11. {tonik-0.1.18 → tonik-0.1.19}/README.md +0 -0
  12. {tonik-0.1.18 → tonik-0.1.19}/grafana_example/Dockerfile_api +0 -0
  13. {tonik-0.1.18 → tonik-0.1.19}/grafana_example/Dockerfile_grafana +0 -0
  14. {tonik-0.1.18 → tonik-0.1.19}/grafana_example/dashboards/demo_dashboard.json +0 -0
  15. {tonik-0.1.18 → tonik-0.1.19}/grafana_example/docker-compose.yml +0 -0
  16. {tonik-0.1.18 → tonik-0.1.19}/grafana_example/grafana.ini +0 -0
  17. {tonik-0.1.18 → tonik-0.1.19}/grafana_example/provisioning/dashboards/default.yaml +0 -0
  18. {tonik-0.1.18 → tonik-0.1.19}/grafana_example/provisioning/datasources/default.yaml +0 -0
  19. {tonik-0.1.18 → tonik-0.1.19}/mkdocs.yml +0 -0
  20. {tonik-0.1.18 → tonik-0.1.19}/pyproject.toml~ +0 -0
  21. {tonik-0.1.18 → tonik-0.1.19}/src/tonik/__init__.py +0 -0
  22. {tonik-0.1.18 → tonik-0.1.19}/src/tonik/api.py +0 -0
  23. {tonik-0.1.18 → tonik-0.1.19}/src/tonik/grafana_annotations.py +0 -0
  24. {tonik-0.1.18 → tonik-0.1.19}/src/tonik/package_data/index.html +0 -0
  25. {tonik-0.1.18 → tonik-0.1.19}/src/tonik/package_data/whakaari_labels.json +0 -0
  26. {tonik-0.1.18 → tonik-0.1.19}/src/tonik/storage.py +0 -0
  27. {tonik-0.1.18 → tonik-0.1.19}/src/tonik/utils.py +0 -0
  28. {tonik-0.1.18 → tonik-0.1.19}/tests/backend_speed_test.py +0 -0
  29. {tonik-0.1.18 → tonik-0.1.19}/tests/conftest.py +0 -0
  30. {tonik-0.1.18 → tonik-0.1.19}/tests/test_api.py +0 -0
  31. {tonik-0.1.18 → tonik-0.1.19}/tests/test_save.py +0 -0
  32. {tonik-0.1.18 → tonik-0.1.19}/tests/test_storage.py +0 -0
  33. {tonik-0.1.18 → tonik-0.1.19}/tests/test_utils.py +0 -0
@@ -5,6 +5,6 @@ tonik.log
5
5
  .vscode
6
6
  *.nfs*
7
7
  .gitignore
8
- site/# pixi environments
8
+ site/
9
9
  .pixi/*
10
10
  !.pixi/config.toml
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tonik
3
- Version: 0.1.18
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.18
3685
- sha256: 4b95b881c9e061722fea5026eb5c859da572024da225d3fd1aab265f23316e32
3684
+ version: 0.1.19
3685
+ sha256: 03b2f4ca6b94c1b2cf29416606b0ac3bc812c1217ce395773496dfad962da544
3686
3686
  requires_dist:
3687
3687
  - h5py>=3.8
3688
3688
  - datashader>=0.14
@@ -12,7 +12,7 @@ exclude = [
12
12
 
13
13
  [project]
14
14
  name = "tonik"
15
- version = "0.1.18"
15
+ version = "0.1.19"
16
16
  authors = [
17
17
  { name="Yannik Behr", email="y.behr@gns.cri.nz" },
18
18
  { name="Christof Mueller", email="c.mueller@gns.cri.nz" }
@@ -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 != 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 != res_da_old:
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