pye57 0.4.4__cp310-cp310-win_amd64.whl → 0.4.11__cp310-cp310-win_amd64.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 pye57 might be problematic. Click here for more details.
- pye57/__version__.py +1 -1
- pye57/libe57.cp310-win_amd64.pyd +0 -0
- pye57/utils.py +78 -3
- pye57/xerces-c_3_2.dll +0 -0
- {pye57-0.4.4.dist-info → pye57-0.4.11.dist-info}/METADATA +1 -1
- pye57-0.4.11.dist-info/RECORD +13 -0
- {pye57-0.4.4.dist-info → pye57-0.4.11.dist-info}/WHEEL +1 -1
- pye57-0.4.4.dist-info/RECORD +0 -13
- {pye57-0.4.4.dist-info → pye57-0.4.11.dist-info}/LICENSE +0 -0
- {pye57-0.4.4.dist-info → pye57-0.4.11.dist-info}/top_level.txt +0 -0
pye57/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.4.
|
|
1
|
+
__version__ = "0.4.11"
|
pye57/libe57.cp310-win_amd64.pyd
CHANGED
|
Binary file
|
pye57/utils.py
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
from typing import Type
|
|
2
|
-
|
|
3
1
|
from pye57 import libe57
|
|
4
2
|
from pye57.libe57 import NodeType
|
|
5
3
|
|
|
@@ -39,4 +37,81 @@ def convert_spherical_to_cartesian(rae):
|
|
|
39
37
|
range_cos_phi * np.cos(theta),
|
|
40
38
|
range_cos_phi * np.sin(theta),
|
|
41
39
|
range_ * np.sin(phi)
|
|
42
|
-
), axis=1)
|
|
40
|
+
), axis=1)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def copy_node(node, dest_image):
|
|
44
|
+
compressed_node_pairs = []
|
|
45
|
+
blob_node_pairs = []
|
|
46
|
+
|
|
47
|
+
out_node = None
|
|
48
|
+
# 'Element' Types
|
|
49
|
+
if (isinstance(node, libe57.FloatNode)):
|
|
50
|
+
out_node = libe57.FloatNode(
|
|
51
|
+
dest_image,
|
|
52
|
+
value=node.value(),
|
|
53
|
+
precision=node.precision(),
|
|
54
|
+
minimum=node.minimum(),
|
|
55
|
+
maximum=node.maximum())
|
|
56
|
+
|
|
57
|
+
elif (isinstance(node, libe57.IntegerNode)):
|
|
58
|
+
out_node = libe57.IntegerNode(
|
|
59
|
+
dest_image,
|
|
60
|
+
value=node.value(),
|
|
61
|
+
minimum=node.minimum(),
|
|
62
|
+
maximum=node.maximum())
|
|
63
|
+
|
|
64
|
+
elif (isinstance(node, libe57.ScaledIntegerNode)):
|
|
65
|
+
out_node = libe57.ScaledIntegerNode(
|
|
66
|
+
dest_image,
|
|
67
|
+
node.rawValue(),
|
|
68
|
+
minimum=node.minimum(),
|
|
69
|
+
maximum=node.maximum(),
|
|
70
|
+
scale=node.scale(),
|
|
71
|
+
offset=node.offset())
|
|
72
|
+
|
|
73
|
+
elif (isinstance(node, libe57.StringNode)):
|
|
74
|
+
out_node = libe57.StringNode(
|
|
75
|
+
dest_image,
|
|
76
|
+
node.value())
|
|
77
|
+
|
|
78
|
+
elif (isinstance(node, libe57.BlobNode)):
|
|
79
|
+
out_node = libe57.BlobNode(dest_image, node.byteCount())
|
|
80
|
+
blob_node_pairs.append({ 'in': node, 'out': out_node })
|
|
81
|
+
|
|
82
|
+
# 'Container' Types
|
|
83
|
+
elif (isinstance(node, libe57.CompressedVectorNode)):
|
|
84
|
+
in_prototype = libe57.StructureNode(node.prototype())
|
|
85
|
+
out_prototype, _, _ = copy_node(in_prototype, dest_image)
|
|
86
|
+
out_codecs, _, _ = copy_node(node.codecs(), dest_image)
|
|
87
|
+
|
|
88
|
+
out_node = libe57.CompressedVectorNode(dest_image, out_prototype, out_codecs)
|
|
89
|
+
|
|
90
|
+
compressed_node_pairs.append({
|
|
91
|
+
'in': node,
|
|
92
|
+
'out': out_node
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
elif isinstance(node, libe57.StructureNode):
|
|
96
|
+
out_node = libe57.StructureNode(dest_image)
|
|
97
|
+
for i in range(node.childCount()):
|
|
98
|
+
in_child = get_node(node, i)
|
|
99
|
+
in_child_name = in_child.elementName()
|
|
100
|
+
out_child, out_child_compressed_node_pairs, out_child_blob_node_pairs = copy_node(in_child, dest_image)
|
|
101
|
+
|
|
102
|
+
out_node.set(in_child_name, out_child)
|
|
103
|
+
compressed_node_pairs.extend(out_child_compressed_node_pairs)
|
|
104
|
+
blob_node_pairs.extend(out_child_blob_node_pairs)
|
|
105
|
+
|
|
106
|
+
elif isinstance(node, libe57.VectorNode):
|
|
107
|
+
out_node = libe57.VectorNode(dest_image, allowHeteroChildren=node.allowHeteroChildren())
|
|
108
|
+
for i in range(node.childCount()):
|
|
109
|
+
in_child = get_node(node, i)
|
|
110
|
+
in_child_name = f'{i}'
|
|
111
|
+
out_child, out_child_compressed_node_pairs, out_child_blob_node_pairs = copy_node(in_child, dest_image)
|
|
112
|
+
|
|
113
|
+
out_node.append(out_child)
|
|
114
|
+
compressed_node_pairs.extend(out_child_compressed_node_pairs)
|
|
115
|
+
blob_node_pairs.extend(out_child_blob_node_pairs)
|
|
116
|
+
|
|
117
|
+
return out_node, compressed_node_pairs, blob_node_pairs
|
pye57/xerces-c_3_2.dll
CHANGED
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
pye57/__init__.py,sha256=keWVF2W7Jau5voY0aufr6bayvjfDJSWf_bmawIvvj88,95
|
|
2
|
+
pye57/__version__.py,sha256=M2iCp4m_qK004Fasj5QOilw1SjIalSGYJefyglat2ow,24
|
|
3
|
+
pye57/e57.py,sha256=ec9_zxTvZ9TlnIVPMrzzB2wRHQg428F6EtWCCeg05K0,18950
|
|
4
|
+
pye57/exception.py,sha256=9Qgriir0IsSpHhStN5uvI5mlbKrc_P5ZURsi_PIW_q8,50
|
|
5
|
+
pye57/libe57.cp310-win_amd64.pyd,sha256=8nqGIyIVuiDmT5YRH2p4mmlUh7zUBD2_pYrzHCEnO4c,744448
|
|
6
|
+
pye57/scan_header.py,sha256=39FD40CBcJL5azN_HjVNvSnFrQR3uO-MIQFFNRhUqRU,6036
|
|
7
|
+
pye57/utils.py,sha256=4jZrQ0sbrsaaFjVkgm_Tf8cLU9fBFb8hvYUDGD2ZJic,4297
|
|
8
|
+
pye57/xerces-c_3_2.dll,sha256=Mvz0hOt3NjjAnYag9h9M6ThSY5VFkrYIMhFxsoixLds,2787328
|
|
9
|
+
pye57-0.4.11.dist-info/LICENSE,sha256=Q0K1iCfVm6UmnR4AAyqME5q7flnU6aGh5OarEIa2K6Y,1056
|
|
10
|
+
pye57-0.4.11.dist-info/METADATA,sha256=absvSSgEsMoOL1ZnSs9IJ1HNWZQgX70vd1vCZwsun0w,4360
|
|
11
|
+
pye57-0.4.11.dist-info/WHEEL,sha256=G3rUecCX3CsVBcQJyjwgL9XzLDe6Kd8bJdI39ws9ZcE,101
|
|
12
|
+
pye57-0.4.11.dist-info/top_level.txt,sha256=xD9HDzQ3BfGMuz1kI2uNKUR0KXcR-RtNEKigrkh48Nk,6
|
|
13
|
+
pye57-0.4.11.dist-info/RECORD,,
|
pye57-0.4.4.dist-info/RECORD
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
pye57/__init__.py,sha256=keWVF2W7Jau5voY0aufr6bayvjfDJSWf_bmawIvvj88,95
|
|
2
|
-
pye57/__version__.py,sha256=qFSjDmyNL54bxLb8AINWo6b3OrPKYgN1ediYtgAA-8U,23
|
|
3
|
-
pye57/e57.py,sha256=ec9_zxTvZ9TlnIVPMrzzB2wRHQg428F6EtWCCeg05K0,18950
|
|
4
|
-
pye57/exception.py,sha256=9Qgriir0IsSpHhStN5uvI5mlbKrc_P5ZURsi_PIW_q8,50
|
|
5
|
-
pye57/libe57.cp310-win_amd64.pyd,sha256=Z8CBay5dhbRG2XcXoujjxjyogDClwPBi4vPCgsxhHNA,739328
|
|
6
|
-
pye57/scan_header.py,sha256=39FD40CBcJL5azN_HjVNvSnFrQR3uO-MIQFFNRhUqRU,6036
|
|
7
|
-
pye57/utils.py,sha256=GbuzETqw22KeDpnVc6dB9EUFBAs3gmhstoy67IyJDqU,1418
|
|
8
|
-
pye57/xerces-c_3_2.dll,sha256=DSbg6d60vDWJjnH59gQ3DxoJaS2-LdIOM9P6pjc9hIU,2787328
|
|
9
|
-
pye57-0.4.4.dist-info/LICENSE,sha256=Q0K1iCfVm6UmnR4AAyqME5q7flnU6aGh5OarEIa2K6Y,1056
|
|
10
|
-
pye57-0.4.4.dist-info/METADATA,sha256=G1AJis_QE38OEZYtqYnI_sqUl9ylCH96gOKLQ-01gtk,4359
|
|
11
|
-
pye57-0.4.4.dist-info/WHEEL,sha256=lO6CqtLHCAi38X3Es1a4R1lAjZFvN010IMRCFo2S7Mc,102
|
|
12
|
-
pye57-0.4.4.dist-info/top_level.txt,sha256=xD9HDzQ3BfGMuz1kI2uNKUR0KXcR-RtNEKigrkh48Nk,6
|
|
13
|
-
pye57-0.4.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|