This repository was archived by the owner on Dec 30, 2023. It is now read-only.
Commit b12f641
committed
some more type-safety and exception handling in pcl_defs.pxd
XXX the at() members of PointCloud[T] can also throw:
>>> a = np.random.randn(10000, 3).astype(np.float32)
>>> p = PointCloud()
>>> p.from_array(a)
>>> p[10000]
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check
Aborted
... but a bug in Cython's code generator prevents "except+" from
working with a function returning a reference.1 parent 3832971 commit b12f641
1 file changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
11 | | - | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
203 | | - | |
| |||
0 commit comments