pye57 0.4.16__cp39-cp39-win_amd64.whl → 0.4.17__cp39-cp39-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/e57.py +18 -2
- pye57/libe57.cp39-win_amd64.pyd +0 -0
- pye57/xerces-c_3_2.dll +0 -0
- {pye57-0.4.16.dist-info → pye57-0.4.17.dist-info}/METADATA +20 -6
- pye57-0.4.17.dist-info/RECORD +13 -0
- {pye57-0.4.16.dist-info → pye57-0.4.17.dist-info}/WHEEL +1 -1
- pye57-0.4.16.dist-info/RECORD +0 -13
- {pye57-0.4.16.dist-info → pye57-0.4.17.dist-info/licenses}/LICENSE +0 -0
- {pye57-0.4.16.dist-info → pye57-0.4.17.dist-info}/top_level.txt +0 -0
pye57/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.4.
|
|
1
|
+
__version__ = "0.4.17"
|
pye57/e57.py
CHANGED
|
@@ -110,6 +110,11 @@ class E57:
|
|
|
110
110
|
self.root.set("images2D", libe57.VectorNode(imf, True))
|
|
111
111
|
|
|
112
112
|
def make_buffer(self, field_name, capacity, do_conversion=True, do_scaling=True):
|
|
113
|
+
# now this exception should never get hit through read_scan or read_scan_raw
|
|
114
|
+
# for read_scan, the headers are constructed, so they should all be supported
|
|
115
|
+
# for read_scan_raw, it now filters out the unsupported headers
|
|
116
|
+
# however, if make_buffer or make_buffers gets called, an unsupported field name could be passed in directly
|
|
117
|
+
# if we don't want users calling them, maybe we could make them private, and this would be an assertion
|
|
113
118
|
if field_name not in SUPPORTED_POINT_FIELDS:
|
|
114
119
|
raise ValueError("Unsupported point field: %s" % field_name)
|
|
115
120
|
|
|
@@ -131,11 +136,22 @@ class E57:
|
|
|
131
136
|
buffers.append(b)
|
|
132
137
|
return data, buffers
|
|
133
138
|
|
|
134
|
-
def read_scan_raw(self, index) -> Dict:
|
|
139
|
+
def read_scan_raw(self, index, ignore_unsupported_fields=False) -> Dict:
|
|
135
140
|
header = self.get_header(index)
|
|
141
|
+
supported_point_fields = []
|
|
142
|
+
unsupported_point_fields = []
|
|
143
|
+
for field in header.point_fields:
|
|
144
|
+
if field in SUPPORTED_POINT_FIELDS:
|
|
145
|
+
supported_point_fields.append(field)
|
|
146
|
+
else:
|
|
147
|
+
unsupported_point_fields.append(field)
|
|
148
|
+
if unsupported_point_fields != [] and not ignore_unsupported_fields:
|
|
149
|
+
raise ValueError("Unsupported point fields: %s.\n"
|
|
150
|
+
"Consider using 'ignore_unsupported_fields' to skip them." % unsupported_point_fields)
|
|
151
|
+
# could it call make_buffers instead, it looks like the code's identical
|
|
136
152
|
data = {}
|
|
137
153
|
buffers = libe57.VectorSourceDestBuffer()
|
|
138
|
-
for field in
|
|
154
|
+
for field in supported_point_fields:
|
|
139
155
|
np_array, buffer = self.make_buffer(field, header.point_count)
|
|
140
156
|
data[field] = np_array
|
|
141
157
|
buffers.append(buffer)
|
pye57/libe57.cp39-win_amd64.pyd
CHANGED
|
Binary file
|
pye57/xerces-c_3_2.dll
CHANGED
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pye57
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.17
|
|
4
4
|
Summary: Python .e57 files reader/writer
|
|
5
5
|
Home-page: https://www.github.com/davidcaron/pye57
|
|
6
6
|
Author: David Caron
|
|
@@ -24,6 +24,20 @@ Requires-Dist: numpy
|
|
|
24
24
|
Requires-Dist: pyquaternion
|
|
25
25
|
Provides-Extra: test
|
|
26
26
|
Requires-Dist: pytest; extra == "test"
|
|
27
|
+
Dynamic: author
|
|
28
|
+
Dynamic: author-email
|
|
29
|
+
Dynamic: classifier
|
|
30
|
+
Dynamic: description
|
|
31
|
+
Dynamic: description-content-type
|
|
32
|
+
Dynamic: home-page
|
|
33
|
+
Dynamic: license
|
|
34
|
+
Dynamic: license-file
|
|
35
|
+
Dynamic: maintainer
|
|
36
|
+
Dynamic: maintainer-email
|
|
37
|
+
Dynamic: provides-extra
|
|
38
|
+
Dynamic: requires-dist
|
|
39
|
+
Dynamic: requires-python
|
|
40
|
+
Dynamic: summary
|
|
27
41
|
|
|
28
42
|
|
|
29
43
|
# pye57
|
|
@@ -67,10 +81,10 @@ assert isinstance(data["columnIndex"], np.ndarray)
|
|
|
67
81
|
data_raw = e57.read_scan_raw(0)
|
|
68
82
|
|
|
69
83
|
# writing is also possible, but only using raw data for now
|
|
70
|
-
|
|
71
|
-
e57_write.write_scan_raw(data_raw)
|
|
72
|
-
# you can specify a header to copy information from
|
|
73
|
-
e57_write.write_scan_raw(data_raw, scan_header=e57.get_header(0))
|
|
84
|
+
with pye57.E57("e57_file_write.e57", mode='w') as e57_write:
|
|
85
|
+
e57_write.write_scan_raw(data_raw)
|
|
86
|
+
# you can specify a header to copy information from
|
|
87
|
+
e57_write.write_scan_raw(data_raw, scan_header=e57.get_header(0))
|
|
74
88
|
|
|
75
89
|
# the ScanHeader object wraps most of the scan information:
|
|
76
90
|
header = e57.get_header(0)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
pye57/__init__.py,sha256=keWVF2W7Jau5voY0aufr6bayvjfDJSWf_bmawIvvj88,95
|
|
2
|
+
pye57/__version__.py,sha256=4aW0U0UNijNF-wcZduMEIIsv1YFF2CLlpOHjUj01UNk,24
|
|
3
|
+
pye57/e57.py,sha256=FQp3eCa0-4mARIbVebhssW6bNW5VYl7F_IzxEM_yc6Q,20112
|
|
4
|
+
pye57/exception.py,sha256=9Qgriir0IsSpHhStN5uvI5mlbKrc_P5ZURsi_PIW_q8,50
|
|
5
|
+
pye57/libe57.cp39-win_amd64.pyd,sha256=9JmRDuxWjVkDVAjkJy9lQLXaLG56Q2Fn5_ZfiaT3pnw,724992
|
|
6
|
+
pye57/scan_header.py,sha256=eCPId1MGxTJmKaqPwHjMJV6bFRvhorcxVmumZOrbLow,6301
|
|
7
|
+
pye57/utils.py,sha256=4jZrQ0sbrsaaFjVkgm_Tf8cLU9fBFb8hvYUDGD2ZJic,4297
|
|
8
|
+
pye57/xerces-c_3_2.dll,sha256=Zwv4i2eMSJq50uWuT_b4HnGSIy9mwm7Lnh1UeorvFI4,2787328
|
|
9
|
+
pye57-0.4.17.dist-info/licenses/LICENSE,sha256=Q0K1iCfVm6UmnR4AAyqME5q7flnU6aGh5OarEIa2K6Y,1056
|
|
10
|
+
pye57-0.4.17.dist-info/METADATA,sha256=otiAqPlP3GKPZHEIgnDxZMeC5HQHSlgroD65r9BKWQY,4947
|
|
11
|
+
pye57-0.4.17.dist-info/WHEEL,sha256=_9LdmaRIfXWp_Uy6tv_X_RTlVRhOvIKQNtaqhqQiH-Y,99
|
|
12
|
+
pye57-0.4.17.dist-info/top_level.txt,sha256=xD9HDzQ3BfGMuz1kI2uNKUR0KXcR-RtNEKigrkh48Nk,6
|
|
13
|
+
pye57-0.4.17.dist-info/RECORD,,
|
pye57-0.4.16.dist-info/RECORD
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
pye57/__init__.py,sha256=keWVF2W7Jau5voY0aufr6bayvjfDJSWf_bmawIvvj88,95
|
|
2
|
-
pye57/__version__.py,sha256=8q4JGicBsDYRjoV9eavHMfCm0N-bffqXmSk3-aUb_q4,24
|
|
3
|
-
pye57/e57.py,sha256=r2Fej2sTfWIwi931KZTkpdUsVovxq9RENEj9h9QU-YU,18962
|
|
4
|
-
pye57/exception.py,sha256=9Qgriir0IsSpHhStN5uvI5mlbKrc_P5ZURsi_PIW_q8,50
|
|
5
|
-
pye57/libe57.cp39-win_amd64.pyd,sha256=s3Rrqj-oQ4Jw7e3ppk3h4FejXpAPQZTWqogB59KBFsg,724992
|
|
6
|
-
pye57/scan_header.py,sha256=eCPId1MGxTJmKaqPwHjMJV6bFRvhorcxVmumZOrbLow,6301
|
|
7
|
-
pye57/utils.py,sha256=4jZrQ0sbrsaaFjVkgm_Tf8cLU9fBFb8hvYUDGD2ZJic,4297
|
|
8
|
-
pye57/xerces-c_3_2.dll,sha256=_EVdzIM7vOXEvU1pyRaRmmmSUqztpyrtzRVvWUDi3t0,2787328
|
|
9
|
-
pye57-0.4.16.dist-info/LICENSE,sha256=Q0K1iCfVm6UmnR4AAyqME5q7flnU6aGh5OarEIa2K6Y,1056
|
|
10
|
-
pye57-0.4.16.dist-info/METADATA,sha256=jkNllX7IWg9RRMqFlu4xk83c-JQwD9iqD6w104uTSgU,4608
|
|
11
|
-
pye57-0.4.16.dist-info/WHEEL,sha256=EfPXSsrLwp9clrn29v9vbmPfEm-IfFzseSJd0ZtI9XA,99
|
|
12
|
-
pye57-0.4.16.dist-info/top_level.txt,sha256=xD9HDzQ3BfGMuz1kI2uNKUR0KXcR-RtNEKigrkh48Nk,6
|
|
13
|
-
pye57-0.4.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|