pyetp 0.0.35__tar.gz → 0.0.36__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.
- {pyetp-0.0.35 → pyetp-0.0.36}/PKG-INFO +1 -1
- {pyetp-0.0.35 → pyetp-0.0.36}/pyetp/client.py +5 -3
- {pyetp-0.0.35 → pyetp-0.0.36}/pyetp/utils_xml.py +1 -1
- {pyetp-0.0.35 → pyetp-0.0.36}/pyproject.toml +1 -1
- {pyetp-0.0.35 → pyetp-0.0.36}/LICENSE.md +0 -0
- {pyetp-0.0.35 → pyetp-0.0.36}/README.md +0 -0
- {pyetp-0.0.35 → pyetp-0.0.36}/pyetp/__init__.py +0 -0
- {pyetp-0.0.35 → pyetp-0.0.36}/pyetp/config.py +0 -0
- {pyetp-0.0.35 → pyetp-0.0.36}/pyetp/resqml_objects/__init__.py +0 -0
- {pyetp-0.0.35 → pyetp-0.0.36}/pyetp/resqml_objects/generated.py +0 -0
- {pyetp-0.0.35 → pyetp-0.0.36}/pyetp/types.py +0 -0
- {pyetp-0.0.35 → pyetp-0.0.36}/pyetp/uri.py +0 -0
- {pyetp-0.0.35 → pyetp-0.0.36}/pyetp/utils.py +0 -0
- {pyetp-0.0.35 → pyetp-0.0.36}/pyetp/utils_arrays.py +0 -0
|
@@ -274,6 +274,8 @@ class ETPClient(ETPConnection):
|
|
|
274
274
|
|
|
275
275
|
|
|
276
276
|
def dataspace_uri(self, ds: str) -> DataspaceURI:
|
|
277
|
+
if ds.count("/") > 1:
|
|
278
|
+
raise Exception(f"Max one / in dataspace name")
|
|
277
279
|
return DataspaceURI.from_name(ds)
|
|
278
280
|
|
|
279
281
|
def list_objects(self, dataspace_uri: DataspaceURI, depth: int = 1) -> list:
|
|
@@ -291,10 +293,10 @@ class ETPClient(ETPConnection):
|
|
|
291
293
|
#
|
|
292
294
|
|
|
293
295
|
async def put_dataspaces(self, *dataspace_uris: DataspaceURI):
|
|
294
|
-
|
|
295
|
-
|
|
296
296
|
_uris = list(map(DataspaceURI.from_any, dataspace_uris))
|
|
297
|
-
|
|
297
|
+
for i in _uris:
|
|
298
|
+
if i.raw_uri.count("/") > 4: # includes the 3 eml
|
|
299
|
+
raise Exception(f"Max one / in dataspace name")
|
|
298
300
|
time = self.timestamp
|
|
299
301
|
response = await self.send(
|
|
300
302
|
PutDataspaces(dataspaces={
|
|
@@ -437,7 +437,7 @@ def create_resqml_mesh(rmdi, rmdts, geotimes, projected_epsg: int): #(rddms_mes
|
|
|
437
437
|
node_count=node_count,
|
|
438
438
|
face_count=face_count,
|
|
439
439
|
cell_shape=cellshape,
|
|
440
|
-
points=ro.
|
|
440
|
+
points=ro.Point3dHdf5Array(
|
|
441
441
|
coordinates=ro.Hdf5Dataset(
|
|
442
442
|
path_in_hdf_file=f"/RESQML/{str(hexa_uuid)}/points",
|
|
443
443
|
hdf_proxy=ro.DataObjectReference(
|
|
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
|