pye57 0.4.17__cp312-cp312-win_amd64.whl → 0.4.18__cp312-cp312-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 CHANGED
@@ -1 +1 @@
1
- __version__ = "0.4.17"
1
+ __version__ = "0.4.18"
Binary file
pye57/scan_header.py CHANGED
@@ -28,7 +28,11 @@ class ScanHeader:
28
28
 
29
29
  @property
30
30
  def rotation_matrix(self) -> np.array:
31
- q = Quaternion([e.value() for e in self.node["pose"]["rotation"]])
31
+ try:
32
+ rotation = self.node["pose"]["rotation"]
33
+ q = Quaternion([e.value() for e in rotation])
34
+ except libe57.E57Exception:
35
+ q = Quaternion()
32
36
  return q.rotation_matrix
33
37
 
34
38
  @property
@@ -36,13 +40,17 @@ class ScanHeader:
36
40
  try:
37
41
  rotation = self.node["pose"]["rotation"]
38
42
  q = Quaternion([e.value() for e in rotation])
39
- except KeyError:
43
+ except libe57.E57Exception:
40
44
  q = Quaternion()
41
45
  return q.elements
42
46
 
43
47
  @property
44
48
  def translation(self):
45
- return np.array([e.value() for e in self.node["pose"]["translation"]])
49
+ try:
50
+ translation_values = [e.value() for e in self.node["pose"]["translation"]]
51
+ except libe57.E57Exception:
52
+ translation_values = [0] * 3
53
+ return np.array(translation_values)
46
54
 
47
55
  def pretty_print(self, node=None, indent=""):
48
56
  if node is None:
pye57/xerces-c_3_2.dll CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pye57
3
- Version: 0.4.17
3
+ Version: 0.4.18
4
4
  Summary: Python .e57 files reader/writer
5
5
  Home-page: https://www.github.com/davidcaron/pye57
6
6
  Author: David Caron
@@ -0,0 +1,13 @@
1
+ pye57/__init__.py,sha256=keWVF2W7Jau5voY0aufr6bayvjfDJSWf_bmawIvvj88,95
2
+ pye57/__version__.py,sha256=OKFYKPXKQp2H8ojGkwLp1C59NpF_iq8OKM69JLSu5Ck,24
3
+ pye57/e57.py,sha256=FQp3eCa0-4mARIbVebhssW6bNW5VYl7F_IzxEM_yc6Q,20112
4
+ pye57/exception.py,sha256=9Qgriir0IsSpHhStN5uvI5mlbKrc_P5ZURsi_PIW_q8,50
5
+ pye57/libe57.cp312-win_amd64.pyd,sha256=YeLfEvCw6BgJbmrTAy_qlzKaa9rBrVfA6QVIQb4ypNo,777728
6
+ pye57/scan_header.py,sha256=MNVE7RqEu_ywZMBJi6hh2miWoKFtU2yQ4jBfd_CAzEY,6576
7
+ pye57/utils.py,sha256=4jZrQ0sbrsaaFjVkgm_Tf8cLU9fBFb8hvYUDGD2ZJic,4297
8
+ pye57/xerces-c_3_2.dll,sha256=zEDGrgPYfDUSCovZHi3CVLcU8mdmcJH5F12qBPCoGkc,2793984
9
+ pye57-0.4.18.dist-info/licenses/LICENSE,sha256=Q0K1iCfVm6UmnR4AAyqME5q7flnU6aGh5OarEIa2K6Y,1056
10
+ pye57-0.4.18.dist-info/METADATA,sha256=udgirp0oC_HFLvJUEjDPbgwld4qwy_hswLSoPoLPZ18,4947
11
+ pye57-0.4.18.dist-info/WHEEL,sha256=8UP9x9puWI0P1V_d7K2oMTBqfeLNm21CTzZ_Ptr0NXU,101
12
+ pye57-0.4.18.dist-info/top_level.txt,sha256=xD9HDzQ3BfGMuz1kI2uNKUR0KXcR-RtNEKigrkh48Nk,6
13
+ pye57-0.4.18.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-win_amd64
5
5
 
@@ -1,13 +0,0 @@
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.cp312-win_amd64.pyd,sha256=wlLDuYDshgAfhe5WQOOjdjclI9gykAmkoVGR-pgyu1E,813568
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=UPBFOm4-IJguDqBVRoKS6hxTeqWyP0GpijaCQTBHWKA,101
12
- pye57-0.4.17.dist-info/top_level.txt,sha256=xD9HDzQ3BfGMuz1kI2uNKUR0KXcR-RtNEKigrkh48Nk,6
13
- pye57-0.4.17.dist-info/RECORD,,