tonik 0.1.14__py3-none-any.whl → 0.1.15__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/storage.py +7 -3
- {tonik-0.1.14.dist-info → tonik-0.1.15.dist-info}/METADATA +1 -1
- {tonik-0.1.14.dist-info → tonik-0.1.15.dist-info}/RECORD +6 -6
- {tonik-0.1.14.dist-info → tonik-0.1.15.dist-info}/WHEEL +0 -0
- {tonik-0.1.14.dist-info → tonik-0.1.15.dist-info}/entry_points.txt +0 -0
- {tonik-0.1.14.dist-info → tonik-0.1.15.dist-info}/licenses/LICENSE +0 -0
tonik/storage.py
CHANGED
|
@@ -112,7 +112,7 @@ class Path(object):
|
|
|
112
112
|
self.children[feature] = Path(feature + file_ending, self.path)
|
|
113
113
|
return _feature_path
|
|
114
114
|
|
|
115
|
-
def __call__(self, feature, group='original'):
|
|
115
|
+
def __call__(self, feature, group='original', attributes_only=False):
|
|
116
116
|
"""
|
|
117
117
|
Request a particular feature
|
|
118
118
|
|
|
@@ -120,11 +120,15 @@ class Path(object):
|
|
|
120
120
|
:type feature: str
|
|
121
121
|
|
|
122
122
|
"""
|
|
123
|
+
filename = self.feature_path(feature)
|
|
124
|
+
|
|
125
|
+
if attributes_only:
|
|
126
|
+
with xr.open_dataset(filename, group=group, engine=self.engine) as ds:
|
|
127
|
+
return ds.attrs
|
|
128
|
+
|
|
123
129
|
if self.endtime < self.starttime:
|
|
124
130
|
raise ValueError('Startime has to be smaller than endtime.')
|
|
125
131
|
|
|
126
|
-
filename = self.feature_path(feature)
|
|
127
|
-
|
|
128
132
|
logger.debug(
|
|
129
133
|
f"Reading feature {feature} between {self.starttime} and {self.endtime}")
|
|
130
134
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tonik
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.15
|
|
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
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
tonik/__init__.py,sha256=dov-nMeGFBzLspmj4rWKjC4r736vmaPDgMEkHSUfP98,523
|
|
2
2
|
tonik/api.py,sha256=XDKiz1AzYNBOwYfaRxpMgqGRDAPJEE6wWJyBxuYPRLc,7751
|
|
3
|
-
tonik/storage.py,sha256=
|
|
3
|
+
tonik/storage.py,sha256=vFxIrY92cSYOYOpNXHxCAjdXgkrRytaRDpudtK0glmg,10608
|
|
4
4
|
tonik/utils.py,sha256=9eSVKIbs8TIZlJCz_-B7FrvOUQCQHO3K52v4Heus-uE,6135
|
|
5
5
|
tonik/xarray2netcdf.py,sha256=gDNT6nxnRbXPeRqZ3URW5oXY3Nfh3TCrfueE-eUrIoY,5181
|
|
6
6
|
tonik/xarray2zarr.py,sha256=RhCnS6g3yqe8mrEXhD_4PCN0EI3QPhp5X7ui_wvb_jY,2445
|
|
7
7
|
tonik/package_data/index.html,sha256=ZCZ-BtGRERsL-6c_dfY43qd2WAaggH7xereennGL6ww,4372
|
|
8
|
-
tonik-0.1.
|
|
9
|
-
tonik-0.1.
|
|
10
|
-
tonik-0.1.
|
|
11
|
-
tonik-0.1.
|
|
12
|
-
tonik-0.1.
|
|
8
|
+
tonik-0.1.15.dist-info/METADATA,sha256=fgLopxgfF1ooNHl2DEYN3dFivpSknlfRrAL2eledYKo,2143
|
|
9
|
+
tonik-0.1.15.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
|
|
10
|
+
tonik-0.1.15.dist-info/entry_points.txt,sha256=mT3B4eBE8SHlAeMhFnZGor9-YkVtoWM1NVHVuypJ-uY,74
|
|
11
|
+
tonik-0.1.15.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
12
|
+
tonik-0.1.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|