tonik 0.1.18__py3-none-any.whl → 0.1.19__py3-none-any.whl

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/xarray2netcdf.py CHANGED
@@ -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
 
tonik/xarray2zarr.py CHANGED
@@ -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')
@@ -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
@@ -3,12 +3,12 @@ tonik/api.py,sha256=vW0ykOo5iGAV0_WuOepdrnUyFp83F7KyJTd43ksLmUk,7985
3
3
  tonik/grafana_annotations.py,sha256=ZU9Cy-HT4vvMfYIQzD9WboaDVOCBDv__NmXbk1qKWJo,5838
4
4
  tonik/storage.py,sha256=jcCVx2N8J1ZBKM73k-OaxB0uxukn4VAM_-CCaCeAKwk,10589
5
5
  tonik/utils.py,sha256=vRFMoCU7dbfnnm5RALBR-XrpPGDFtQoeTDzxFiYf3bo,7522
6
- tonik/xarray2netcdf.py,sha256=hO3adraANvSuvmMJj0moDRAKXK01uTpAuxHPKv5xMwY,6486
7
- tonik/xarray2zarr.py,sha256=aPaN-gSI0YFAOeD30ex6fq6vtzrNO7YSKraitrUn6Fc,11222
6
+ tonik/xarray2netcdf.py,sha256=nq6RHk5ciaAg1bxNDiyHPRdAts1C7fj7jtDbaLaSTWM,6497
7
+ tonik/xarray2zarr.py,sha256=Dg9_b6Zwj_UQMhOez6wrPeHn0rUffUHqbv-e4pP_t3w,11233
8
8
  tonik/package_data/index.html,sha256=ZCZ-BtGRERsL-6c_dfY43qd2WAaggH7xereennGL6ww,4372
9
9
  tonik/package_data/whakaari_labels.json,sha256=96UZSq41yXgAJxuKivLBKlRTw-33jkjh7AGKTsDQ9Yg,3993
10
- tonik-0.1.18.dist-info/METADATA,sha256=bRaWxrTariy4xjpcKTrqDk0_GqtHOReVYIjbWz1f1hQ,2207
11
- tonik-0.1.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
- tonik-0.1.18.dist-info/entry_points.txt,sha256=y82XyTeQddM87gCTzgSQaTlKF3VFicO4hhClHUv6j1A,127
13
- tonik-0.1.18.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
14
- tonik-0.1.18.dist-info/RECORD,,
10
+ tonik-0.1.19.dist-info/METADATA,sha256=IdmsIGrgcA1LV2Ji59HlyeN9ykMT4n6iId6YcPO936Q,2207
11
+ tonik-0.1.19.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
12
+ tonik-0.1.19.dist-info/entry_points.txt,sha256=y82XyTeQddM87gCTzgSQaTlKF3VFicO4hhClHUv6j1A,127
13
+ tonik-0.1.19.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
14
+ tonik-0.1.19.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any