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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyetp
3
- Version: 0.0.35
3
+ Version: 0.0.36
4
4
  Summary: Interface with OSDU RDDMS using ETP protocol
5
5
  Author: Adam Cheng
6
6
  Author-email: 52572642+adamchengtkc@users.noreply.github.com
@@ -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.Point3DHdf5Array(
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(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyetp"
3
- version = "0.0.35"
3
+ version = "0.0.36"
4
4
  description = "Interface with OSDU RDDMS using ETP protocol"
5
5
  authors = ["Adam Cheng <52572642+adamchengtkc@users.noreply.github.com>"]
6
6
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes