h5netcdf 1.2.0__py3-none-any.whl → 1.4.0__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.
Potentially problematic release.
This version of h5netcdf might be problematic. Click here for more details.
- h5netcdf/__init__.py +1 -0
- h5netcdf/_version.py +14 -2
- h5netcdf/attrs.py +2 -2
- h5netcdf/core.py +565 -95
- h5netcdf/dimensions.py +6 -9
- h5netcdf/legacyapi.py +26 -5
- h5netcdf/tests/test_h5netcdf.py +619 -63
- {h5netcdf-1.2.0.dist-info → h5netcdf-1.4.0.dist-info}/METADATA +26 -27
- h5netcdf-1.4.0.dist-info/RECORD +16 -0
- {h5netcdf-1.2.0.dist-info → h5netcdf-1.4.0.dist-info}/WHEEL +1 -1
- h5netcdf-1.2.0.dist-info/RECORD +0 -16
- {h5netcdf-1.2.0.dist-info → h5netcdf-1.4.0.dist-info}/AUTHORS.txt +0 -0
- {h5netcdf-1.2.0.dist-info → h5netcdf-1.4.0.dist-info}/LICENSE +0 -0
- {h5netcdf-1.2.0.dist-info → h5netcdf-1.4.0.dist-info}/top_level.txt +0 -0
h5netcdf/__init__.py
CHANGED
h5netcdf/_version.py
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
# file generated by setuptools_scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
TYPE_CHECKING = False
|
|
4
|
+
if TYPE_CHECKING:
|
|
5
|
+
from typing import Tuple, Union
|
|
6
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
7
|
+
else:
|
|
8
|
+
VERSION_TUPLE = object
|
|
9
|
+
|
|
10
|
+
version: str
|
|
11
|
+
__version__: str
|
|
12
|
+
__version_tuple__: VERSION_TUPLE
|
|
13
|
+
version_tuple: VERSION_TUPLE
|
|
14
|
+
|
|
15
|
+
__version__ = version = '1.4.0'
|
|
16
|
+
__version_tuple__ = version_tuple = (1, 4, 0)
|
h5netcdf/attrs.py
CHANGED
|
@@ -76,7 +76,7 @@ class Attributes(MutableMapping):
|
|
|
76
76
|
|
|
77
77
|
def __setitem__(self, key, value):
|
|
78
78
|
if key in _HIDDEN_ATTRS:
|
|
79
|
-
raise AttributeError("cannot write attribute with reserved name
|
|
79
|
+
raise AttributeError(f"cannot write attribute with reserved name {key!r}")
|
|
80
80
|
if hasattr(value, "dtype"):
|
|
81
81
|
dtype = value.dtype
|
|
82
82
|
else:
|
|
@@ -98,4 +98,4 @@ class Attributes(MutableMapping):
|
|
|
98
98
|
return len(self._h5attrs) - hidden_count
|
|
99
99
|
|
|
100
100
|
def __repr__(self):
|
|
101
|
-
return "\n".join(["
|
|
101
|
+
return "\n".join([f"{type(self)!r}"] + [f"{k}: {v!r}" for k, v in self.items()])
|