pyetp 0.0.45__py3-none-any.whl → 0.0.47__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.
- energistics/__init__.py +0 -0
- energistics/etp/__init__.py +0 -0
- energistics/etp/v12/__init__.py +0 -0
- energistics/etp/v12/datatypes/__init__.py +25 -0
- energistics/etp/v12/datatypes/data_array_types/__init__.py +27 -0
- energistics/etp/v12/datatypes/object/__init__.py +22 -0
- energistics/etp/v12/protocol/__init__.py +0 -0
- energistics/etp/v12/protocol/core/__init__.py +19 -0
- energistics/etp/v12/protocol/data_array/__init__.py +51 -0
- energistics/etp/v12/protocol/dataspace/__init__.py +23 -0
- energistics/etp/v12/protocol/discovery/__init__.py +21 -0
- energistics/etp/v12/protocol/store/__init__.py +27 -0
- energistics/etp/v12/protocol/transaction/__init__.py +27 -0
- pyetp/__init__.py +1 -2
- pyetp/_version.py +2 -2
- pyetp/client.py +426 -306
- pyetp/errors.py +39 -0
- pyetp/uri.py +3 -1
- pyetp/utils_arrays.py +1 -7
- pyetp/utils_xml.py +1 -6
- {pyetp-0.0.45.dist-info → pyetp-0.0.47.dist-info}/METADATA +8 -3
- pyetp-0.0.47.dist-info/RECORD +39 -0
- {pyetp-0.0.45.dist-info → pyetp-0.0.47.dist-info}/WHEEL +1 -1
- {pyetp-0.0.45.dist-info → pyetp-0.0.47.dist-info}/top_level.txt +2 -0
- rddms_io/__init__.py +0 -0
- rddms_io/client.py +1234 -0
- rddms_io/data_types.py +11 -0
- resqml_objects/epc_readers.py +3 -7
- resqml_objects/parsers.py +18 -5
- resqml_objects/serializers.py +25 -2
- resqml_objects/surface_helpers.py +295 -0
- resqml_objects/v201/generated.py +582 -19
- resqml_objects/v201/utils.py +38 -0
- pyetp-0.0.45.dist-info/RECORD +0 -21
- {pyetp-0.0.45.dist-info → pyetp-0.0.47.dist-info}/licenses/LICENSE.md +0 -0
resqml_objects/v201/utils.py
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import typing
|
|
2
|
+
import warnings
|
|
3
|
+
from dataclasses import fields
|
|
4
|
+
|
|
1
5
|
import resqml_objects.v201 as ro
|
|
2
6
|
|
|
3
7
|
resqml_schema_version = "2.0.1"
|
|
@@ -9,6 +13,12 @@ def get_content_type_string(
|
|
|
9
13
|
resqml_schema_version: str = resqml_schema_version,
|
|
10
14
|
common_schema_version: str = common_schema_version,
|
|
11
15
|
) -> str:
|
|
16
|
+
warnings.warn(
|
|
17
|
+
"The 'get_content_type_string'-function is deprecated and will be removed in "
|
|
18
|
+
"a future version of pyetp. Either use it directly from "
|
|
19
|
+
"'DataObjectReference.get_content_type_string', or let 'DataObjectReference' "
|
|
20
|
+
"handle it where it is needed (under 'resqml_object.v201')."
|
|
21
|
+
)
|
|
12
22
|
# See Energistics Identifier Specification 4.0 (it is downloaded alongside
|
|
13
23
|
# the RESQML v2.0.1 standard) section 4.1 for an explanation on the format
|
|
14
24
|
# of content_type.
|
|
@@ -44,3 +54,31 @@ def get_data_object_reference(
|
|
|
44
54
|
uuid=obj.uuid,
|
|
45
55
|
version_string=obj.citation.version_string,
|
|
46
56
|
)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def find_hdf5_datasets(
|
|
60
|
+
obj: ro.AbstractCitedDataObject,
|
|
61
|
+
) -> list[ro.Hdf5Dataset]:
|
|
62
|
+
return _find_hdf5_datasets(obj)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def _find_hdf5_datasets(obj: typing.Any) -> list[ro.Hdf5Dataset]:
|
|
66
|
+
hds = []
|
|
67
|
+
|
|
68
|
+
if isinstance(obj, list):
|
|
69
|
+
for _obj in obj:
|
|
70
|
+
hds.extend(_find_hdf5_datasets(_obj))
|
|
71
|
+
return hds
|
|
72
|
+
|
|
73
|
+
try:
|
|
74
|
+
_fields = fields(obj)
|
|
75
|
+
except TypeError:
|
|
76
|
+
return hds
|
|
77
|
+
|
|
78
|
+
for f in _fields:
|
|
79
|
+
if isinstance(getattr(obj, f.name), ro.Hdf5Dataset):
|
|
80
|
+
hds.append(getattr(obj, f.name))
|
|
81
|
+
else:
|
|
82
|
+
hds.extend(_find_hdf5_datasets(getattr(obj, f.name)))
|
|
83
|
+
|
|
84
|
+
return hds
|
pyetp-0.0.45.dist-info/RECORD
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
pyetp/__init__.py,sha256=_mJRvg6XJgzHeRWd_AsBNonvWUBD3jroZ9MLehPRHP4,337
|
|
2
|
-
pyetp/_version.py,sha256=ZyfWnYPDH177nyt27Ffy71kE1qNlQLtAEIFxyT_Cx5c,706
|
|
3
|
-
pyetp/client.py,sha256=6bc9aiOEnNkkf34c6VtgJmug9h_S6epeDhwKU4H_LuM,54218
|
|
4
|
-
pyetp/config.py,sha256=uGEx6n-YF7Rtgwckf0ovRKNOKgCUsiQx4IA0Tyiqafk,870
|
|
5
|
-
pyetp/resqml_objects.py,sha256=j00e8scSh-yYv4Lpp9WjzLiaKqJWd5Cs7ROcJcxxFVw,50721
|
|
6
|
-
pyetp/types.py,sha256=zOfUzEQcgBvveWJyM6dD7U3xJ4SCkWElewNL0Ml-PPY,6761
|
|
7
|
-
pyetp/uri.py,sha256=Y05vuTO-XOurgDavBeoPGOidALoCKjCBIb7YHmfbAco,3115
|
|
8
|
-
pyetp/utils_arrays.py,sha256=BJMiwx0mnSUjAOARCfCvWr_rz6N38e7kSWi24I1bCLA,13447
|
|
9
|
-
pyetp/utils_xml.py,sha256=i11Zv2PuxW-ejEXxfGPYHvuJv7EHPYXwvgoe1U8fOUM,6826
|
|
10
|
-
pyetp-0.0.45.dist-info/licenses/LICENSE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
11
|
-
resqml_objects/__init__.py,sha256=ilimTrQScFryxHrfZwZURVpW0li19bVnayUcHR7S_Fs,183
|
|
12
|
-
resqml_objects/epc_readers.py,sha256=InYMlwjiZZRG9poQlWKFEOUNJmowGahXoNu_GniOaBw,3458
|
|
13
|
-
resqml_objects/parsers.py,sha256=UZdBi3QmBq4ejwKI9Dse_lMqL5Bx2s3QNTs8TKS4fO0,427
|
|
14
|
-
resqml_objects/serializers.py,sha256=JqRO6D6ExT5DrVyiNwBgNW28108f6spvxiVqJU0D9mc,352
|
|
15
|
-
resqml_objects/v201/__init__.py,sha256=yL3jWgkyGAzr-wt_WJDV_eARE75NoA6SPEKBrKM4Crk,51630
|
|
16
|
-
resqml_objects/v201/generated.py,sha256=Se0eePS6w25sfmnp2UBSkgzDGJ9c9Y2QqJgDRUTt_-Q,769527
|
|
17
|
-
resqml_objects/v201/utils.py,sha256=WiywauiJRBWhdjUvbKhpltRjoBX3qWd7qQ0_FAmIzUc,1442
|
|
18
|
-
pyetp-0.0.45.dist-info/METADATA,sha256=dlJlGUroCW-nNPB4QAFoWCmpS78BsHHK_oCtb65WaE4,2886
|
|
19
|
-
pyetp-0.0.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
20
|
-
pyetp-0.0.45.dist-info/top_level.txt,sha256=NrdXbidkT5QR4NjH6nv2Frixknqse3jZq7bnqNdVb5k,21
|
|
21
|
-
pyetp-0.0.45.dist-info/RECORD,,
|
|
File without changes
|