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 +1 -1
- tonik/xarray2zarr.py +1 -1
- {tonik-0.1.18.dist-info → tonik-0.1.19.dist-info}/METADATA +1 -1
- {tonik-0.1.18.dist-info → tonik-0.1.19.dist-info}/RECORD +7 -7
- {tonik-0.1.18.dist-info → tonik-0.1.19.dist-info}/WHEEL +1 -1
- {tonik-0.1.18.dist-info → tonik-0.1.19.dist-info}/entry_points.txt +0 -0
- {tonik-0.1.18.dist-info → tonik-0.1.19.dist-info}/licenses/LICENSE +0 -0
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
|
|
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
|
|
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.
|
|
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=
|
|
7
|
-
tonik/xarray2zarr.py,sha256=
|
|
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.
|
|
11
|
-
tonik-0.1.
|
|
12
|
-
tonik-0.1.
|
|
13
|
-
tonik-0.1.
|
|
14
|
-
tonik-0.1.
|
|
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,,
|
|
File without changes
|
|
File without changes
|