pye57 0.4.17__cp39-cp39-macosx_11_0_arm64.whl → 0.4.18__cp39-cp39-macosx_11_0_arm64.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.

Binary file
pye57/__version__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.4.17"
1
+ __version__ = "0.4.18"
Binary file
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:
@@ -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,14 @@
1
+ pye57/libxerces-c-3.2.dylib,sha256=L7OmRUdE89ie_ijqsq424JT6teu5FiIcSYMPaAHHs4c,3955688
2
+ pye57/exception.py,sha256=hjNBnDf-PJrBLU7E8aAlWll0aovVITwjJoN9ex4Lx3o,47
3
+ pye57/__init__.py,sha256=p-yo66Eblp6mIVKaupuS1E3BQGCNZrI96ApqoFusOi8,92
4
+ pye57/__version__.py,sha256=my_eRKQWrGqOjGcYUQ3l4O21n-LMG22J283Pb5L90kw,23
5
+ pye57/e57.py,sha256=iW8gC3N_4KFsYJtBDrSci7sl4VgO0p8eg9sv0AlMA6U,19674
6
+ pye57/utils.py,sha256=LvBz7-LW3E9WNGu7c2aurqrXi-iCdorY-VLAEcTKGbU,4181
7
+ pye57/libe57.cpython-39-darwin.so,sha256=TsqPhmmKMh00BbndZY1_ar5z_IAxQtYylnWZy1xEN5U,2081904
8
+ pye57/scan_header.py,sha256=5L9gexIEob94UsDQdNd3cBYn745mbMVQwK4MhTCopqY,6349
9
+ pye57/.dylibs/libxerces-c-3.2.dylib,sha256=ymq0IS3FsmWG7Azi6_YFnopRzYkoaBXc5IZ5v0Qpb_g,3973824
10
+ pye57-0.4.18.dist-info/RECORD,,
11
+ pye57-0.4.18.dist-info/WHEEL,sha256=bDWaFWigpG5bEpqw9IoRiyYs8MvmSFh0OhUAOoi_-KA,134
12
+ pye57-0.4.18.dist-info/top_level.txt,sha256=xD9HDzQ3BfGMuz1kI2uNKUR0KXcR-RtNEKigrkh48Nk,6
13
+ pye57-0.4.18.dist-info/METADATA,sha256=MHMMurcwNKrXVFPArwCBZTL_NqqMHqvbAnQDoyNzmhA,4781
14
+ pye57-0.4.18.dist-info/licenses/LICENSE,sha256=fk66gXDC1OVruix0TJ6tGGH6vaP_VOzBPETZ3xxnMsY,1050
@@ -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: cp39-cp39-macosx_11_0_arm64
5
5
  Generator: delocate 0.13.0
@@ -1,14 +0,0 @@
1
- pye57-0.4.17.dist-info/RECORD,,
2
- pye57-0.4.17.dist-info/WHEEL,sha256=Kwxci5x7ISUe127fwt3xTR4303geXB3DfriVgIK7Ujk,134
3
- pye57-0.4.17.dist-info/top_level.txt,sha256=xD9HDzQ3BfGMuz1kI2uNKUR0KXcR-RtNEKigrkh48Nk,6
4
- pye57-0.4.17.dist-info/METADATA,sha256=dLwKNmqGB5IIl8UFo_II5zAtUn8VvzuHRZk6zaQUQdM,4781
5
- pye57-0.4.17.dist-info/licenses/LICENSE,sha256=fk66gXDC1OVruix0TJ6tGGH6vaP_VOzBPETZ3xxnMsY,1050
6
- pye57/libxerces-c-3.2.dylib,sha256=G44q9hFS5RR3HC8eWQIL2xVZdwpGTjIFf0Hv4bOlzKY,3955688
7
- pye57/exception.py,sha256=hjNBnDf-PJrBLU7E8aAlWll0aovVITwjJoN9ex4Lx3o,47
8
- pye57/__init__.py,sha256=p-yo66Eblp6mIVKaupuS1E3BQGCNZrI96ApqoFusOi8,92
9
- pye57/__version__.py,sha256=rJbmNVFVceaHhRo-pizixUQW0k5sqoDVdU1TfXfG8CA,23
10
- pye57/e57.py,sha256=iW8gC3N_4KFsYJtBDrSci7sl4VgO0p8eg9sv0AlMA6U,19674
11
- pye57/utils.py,sha256=LvBz7-LW3E9WNGu7c2aurqrXi-iCdorY-VLAEcTKGbU,4181
12
- pye57/libe57.cpython-39-darwin.so,sha256=NpFF3_mzvw6Wh4FpXn5azl3Jo7OVTu8gXNQZgFqoim8,2023024
13
- pye57/scan_header.py,sha256=qO1NhT917ST1uLCl2Hq5lbqkh2343VbyHvTWxjkWxXo,6082
14
- pye57/.dylibs/libxerces-c-3.2.dylib,sha256=VzvBkqsgEnadVA7YTuh0UD4MtKdm-a8llv8n3cdM7E4,3973824