ewoksdata 1.1.0__tar.gz → 1.2.1__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.
- {ewoksdata-1.1.0/src/ewoksdata.egg-info → ewoksdata-1.2.1}/PKG-INFO +1 -1
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/pyproject.toml +1 -1
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/bliss.py +7 -1
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/hdf5/dataset_writer.py +4 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1/src/ewoksdata.egg-info}/PKG-INFO +1 -1
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/LICENSE.md +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/README.md +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/setup.cfg +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/__init__.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/__init__.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/blissdata/__init__.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/blissdata/blissdatav0.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/blissdata/blissdatav1.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/blissdata/blissdatav2.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/contextiterator.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/hdf5/__init__.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/hdf5/config.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/hdf5/types.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/nexus.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/url.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/data/utils.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/tests/__init__.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/tests/conftest.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/tests/data/__init__.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/tests/data/bliss_scans.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/tests/test_contextiterator.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/tests/test_data_bliss.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/tests/test_data_hdf5.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/tests/test_data_nexus.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata/tests/test_dataset_writer.py +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata.egg-info/SOURCES.txt +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata.egg-info/dependency_links.txt +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata.egg-info/requires.txt +0 -0
- {ewoksdata-1.1.0 → ewoksdata-1.2.1}/src/ewoksdata.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ewoksdata"
|
|
7
|
-
version = "1.1
|
|
7
|
+
version = "1.2.1"
|
|
8
8
|
authors = [{ name = "ESRF", email = "dau-pydev@esrf.fr" }]
|
|
9
9
|
description = "Ewoks tasks for data access"
|
|
10
10
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
@@ -139,4 +139,10 @@ def iter_bliss_data(
|
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
def _is_bliss_file(h5item: Union[h5py.Dataset, h5py.Group]) -> bool:
|
|
142
|
-
return
|
|
142
|
+
return (
|
|
143
|
+
h5item.file.attrs.get("creator", "").lower() in _BLISS_PUBLISHERS
|
|
144
|
+
or h5item.file.attrs.get("publisher", "").lower() in _BLISS_PUBLISHERS
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
_BLISS_PUBLISHERS = ("bliss", "blissdata")
|
|
@@ -86,9 +86,11 @@ class DatasetWriter(_DatasetWriterBase):
|
|
|
86
86
|
npoints: Optional[StrictPositiveIntegral] = None,
|
|
87
87
|
attrs: Optional[dict] = None,
|
|
88
88
|
flush_period: Optional[float] = None,
|
|
89
|
+
overwrite: bool = False,
|
|
89
90
|
) -> None:
|
|
90
91
|
super().__init__(parent, name, attrs=attrs, flush_period=flush_period)
|
|
91
92
|
self._npoints = npoints
|
|
93
|
+
self._overwrite = overwrite
|
|
92
94
|
self._chunked: bool = False
|
|
93
95
|
self._npoints_added: int = 0
|
|
94
96
|
|
|
@@ -118,6 +120,8 @@ class DatasetWriter(_DatasetWriterBase):
|
|
|
118
120
|
if options["chunks"]:
|
|
119
121
|
self._chunked = True
|
|
120
122
|
self._chunk_size = options["chunks"][0]
|
|
123
|
+
if self._overwrite and self._name in self._parent:
|
|
124
|
+
del self._parent[self._name]
|
|
121
125
|
dset = self._parent.create_dataset(self._name, **options)
|
|
122
126
|
if self._attrs:
|
|
123
127
|
dset.attrs.update(self._attrs)
|
|
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
|
|
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
|