pye57 0.4.11__cp310-cp310-win_amd64.whl → 0.4.13__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "0.4.11"
1
+ __version__ = "0.4.13"
Binary file
pye57/scan_header.py CHANGED
@@ -5,6 +5,10 @@ from pye57 import libe57
5
5
  from pye57.utils import get_fields, get_node
6
6
 
7
7
  class ScanHeader:
8
+ """Provides summary statistics for an individual lidar scan in an E57 file.
9
+
10
+ Including the number of points, bounds and pose of the scan.
11
+ """
8
12
  def __init__(self, scan_node):
9
13
  self.node = scan_node
10
14
  points = self.node["points"]
@@ -29,7 +33,11 @@ class ScanHeader:
29
33
 
30
34
  @property
31
35
  def rotation(self) -> np.array:
32
- q = Quaternion([e.value() for e in self.node["pose"]["rotation"]])
36
+ try:
37
+ rotation = self.node["pose"]["rotation"]
38
+ q = Quaternion([e.value() for e in rotation])
39
+ except KeyError:
40
+ q = Quaternion()
33
41
  return q.elements
34
42
 
35
43
  @property
pye57/xerces-c_3_2.dll CHANGED
Binary file
@@ -1,10 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pye57
3
- Version: 0.4.11
3
+ Version: 0.4.13
4
4
  Summary: Python .e57 files reader/writer
5
5
  Home-page: https://www.github.com/davidcaron/pye57
6
6
  Author: David Caron
7
7
  Author-email: dcaron05@gmail.com
8
+ Maintainer: Graham Knapp
9
+ Maintainer-email: graham.knapp@gmail.com
8
10
  License: MIT
9
11
  Classifier: License :: OSI Approved :: MIT License
10
12
  Classifier: Programming Language :: Python
@@ -21,7 +23,7 @@ License-File: LICENSE
21
23
  Requires-Dist: numpy
22
24
  Requires-Dist: pyquaternion
23
25
  Provides-Extra: test
24
- Requires-Dist: pytest ; extra == 'test'
26
+ Requires-Dist: pytest; extra == "test"
25
27
 
26
28
 
27
29
  # pye57
@@ -94,21 +96,23 @@ translation_x = scan_0["pose"]["translation"]["x"]
94
96
 
95
97
  ## Installation
96
98
 
97
- If you're on linux or Windows, a wheel should be available.
99
+ On linux, Windows or Apple Silicon:
98
100
 
99
101
  `python -m pip install pye57`
100
102
 
101
- ## Building from source
103
+ On macOS with Intel CPU you can try to build from source (advanced users):
102
104
 
103
- ### Cloning the repository and required submodules
105
+ ## Building from source (for developers)
104
106
 
105
- Clone a new repository along with the required submodules
107
+ ### Cloning the repository with required submodule
108
+
109
+ Clone a new repository along with the libe57Format submodule
106
110
 
107
111
  `git clone https://github.com/davidcaron/pye57.git --recursive`
108
112
 
109
113
  If the repository has already been previously cloned, but without the --recursive flag
110
114
 
111
- ```
115
+ ```Bash
112
116
  cd pye57 # go to the cloned repository
113
117
  git submodule init # this will initialise the submodules in the repository
114
118
  git submodule update # this will update the submodules in the repository
@@ -126,9 +130,15 @@ To get xerces-c, you can either build from source or if you're using conda:
126
130
 
127
131
  `conda install -y xerces-c`
128
132
 
133
+ ### Dependencies on MacOS
134
+
135
+ To get xerces-c, run:
136
+
137
+ `bash ./scripts/install_xerces_c.sh`
138
+
129
139
  ### Run `pip install` from the repo source
130
140
 
131
- ```
141
+ ```Bash
132
142
  cd pye57
133
143
  python -m pip install .
134
144
  ```
@@ -137,6 +147,6 @@ python -m pip install .
137
147
 
138
148
  Use pip again
139
149
 
140
- ```
150
+ ```Bash
141
151
  python -m pip uninstall pye57
142
152
  ```
@@ -0,0 +1,13 @@
1
+ pye57/__init__.py,sha256=keWVF2W7Jau5voY0aufr6bayvjfDJSWf_bmawIvvj88,95
2
+ pye57/__version__.py,sha256=Q39Kp9NPU2eq-tFPb4TniYzoJvrW_Wv_F0KkKUp_qww,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=oAQRHmEncmCJm0uu_z2FoWVI0QHt6JnZhaIgUFktnQ4,744448
6
+ pye57/scan_header.py,sha256=eCPId1MGxTJmKaqPwHjMJV6bFRvhorcxVmumZOrbLow,6301
7
+ pye57/utils.py,sha256=4jZrQ0sbrsaaFjVkgm_Tf8cLU9fBFb8hvYUDGD2ZJic,4297
8
+ pye57/xerces-c_3_2.dll,sha256=q__l2tun4Wrp7Fur54bCx-V8l9NvlC7idThuPvBvFtI,2787328
9
+ pye57-0.4.13.dist-info/LICENSE,sha256=Q0K1iCfVm6UmnR4AAyqME5q7flnU6aGh5OarEIa2K6Y,1056
10
+ pye57-0.4.13.dist-info/METADATA,sha256=1NM1FZ3OuUm6tm_IA9g4yPIxScK3Uap3WpZfaGT-aNw,4607
11
+ pye57-0.4.13.dist-info/WHEEL,sha256=Lp0Jk4-u0g9Se0melfU44m_lToIB022SZzbEcyU9518,101
12
+ pye57-0.4.13.dist-info/top_level.txt,sha256=xD9HDzQ3BfGMuz1kI2uNKUR0KXcR-RtNEKigrkh48Nk,6
13
+ pye57-0.4.13.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (71.1.0)
2
+ Generator: setuptools (74.1.2)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp310-cp310-win_amd64
5
5
 
@@ -1,13 +0,0 @@
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,,