fastquadtree 1.1.0__cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl → 1.1.2__cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.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 fastquadtree might be problematic. Click here for more details.

Binary file
fastquadtree/pyqtree.py CHANGED
@@ -40,7 +40,7 @@ class Index:
40
40
  Based on the benchmarks, this gives a overall performance boost of 6.514x.
41
41
  See the benchmark section of the docs for more details and the latest numbers.
42
42
 
43
-
43
+ Original docstring from pyqtree follows:
44
44
  The top spatial index to be created by the user. Once created it can be
45
45
  populated with geographically placed members that can later be tested for
46
46
  intersection with a user inputted geographic bounding box. Note that the
@@ -122,6 +122,9 @@ class Index:
122
122
  - **item**: The item to insert into the index, which will be returned by the intersection method
123
123
  - **bbox**: The spatial bounding box tuple of the item, with four members (xmin,ymin,xmax,ymax)
124
124
  """
125
+ if type(bbox) is list: # Handle list input
126
+ bbox = tuple(bbox)
127
+
125
128
  if self._free:
126
129
  rid = self._free.pop()
127
130
  self._objects[rid] = item
@@ -141,6 +144,9 @@ class Index:
141
144
 
142
145
  Both parameters need to exactly match the parameters provided to the insert method.
143
146
  """
147
+ if type(bbox) is list: # Handle list input
148
+ bbox = tuple(bbox)
149
+
144
150
  rid = self._item_to_id.pop(id(item))
145
151
  self._qt.delete(rid, bbox)
146
152
  self._objects[rid] = None
@@ -157,6 +163,8 @@ class Index:
157
163
  Returns:
158
164
  - A list of inserted items whose bounding boxes intersect with the input bbox.
159
165
  """
166
+ if type(bbox) is list: # Handle list input
167
+ bbox = tuple(bbox)
160
168
  result = self._qt.query_ids(bbox)
161
169
  # result = [id1, id2, ...]
162
170
  return gather_objs(self._objects, result)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastquadtree
3
- Version: 1.1.0
3
+ Version: 1.1.2
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Python :: 3 :: Only
6
6
  Classifier: Programming Language :: Rust
@@ -1,13 +1,13 @@
1
- fastquadtree-1.1.0.dist-info/METADATA,sha256=JQmhbeCyVPYw2fDQPTafS3k_DQ2hqYkwYZMWgnogmaI,9501
2
- fastquadtree-1.1.0.dist-info/WHEEL,sha256=xBqaWU3Z-cfW-EFy0ENuEqxgXZXkIHUBkA1cT6FlqGM,127
3
- fastquadtree-1.1.0.dist-info/licenses/LICENSE,sha256=pRuvcuqIMtEUBMgvP1Bc4fOHydzeuA61c6DQoQ1pb1w,1071
1
+ fastquadtree-1.1.2.dist-info/METADATA,sha256=Xuiwr9cpXZhCSt6P3e_kr6t4YWHD0PTszufwxLgmq74,9501
2
+ fastquadtree-1.1.2.dist-info/WHEEL,sha256=xBqaWU3Z-cfW-EFy0ENuEqxgXZXkIHUBkA1cT6FlqGM,127
3
+ fastquadtree-1.1.2.dist-info/licenses/LICENSE,sha256=pRuvcuqIMtEUBMgvP1Bc4fOHydzeuA61c6DQoQ1pb1w,1071
4
4
  fastquadtree/__init__.py,sha256=rtkveNz7rScRasTRGu1yEqzeoJfLfreJNxg21orPL-U,195
5
5
  fastquadtree/_base_quadtree.py,sha256=o5T0xqDM9i_JjpYF4U7VmLM0qUHkw0wr0bbRqb-CGt4,9901
6
6
  fastquadtree/_item.py,sha256=LoTDr7zlsZyUrrKK6Ketzl5fxTcFF8YbcxEXbQ65st4,1679
7
- fastquadtree/_native.abi3.so,sha256=hBLK36G-Hk5RGYeKgU5gEmLKHtoZxjnpbus62wnBNNk,499740
7
+ fastquadtree/_native.abi3.so,sha256=Z5UGIeTn4Un5PwQm4v5dPnip3BWlQeS2JljdY3s7YS0,499724
8
8
  fastquadtree/_obj_store.py,sha256=vmhZGdzEoTQHvRbFjTne_0X2Z1l48SXyB6I9SAjjbiM,5267
9
9
  fastquadtree/point_quadtree.py,sha256=Pz8ZS7N3kYSYJJYGa3ghKzy7d3JCA1dbi9nfEwwpF_k,5178
10
10
  fastquadtree/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- fastquadtree/pyqtree.py,sha256=W5akt9gua7mr51eI-I1hqbZJMRdcNKWzpeaZhlOvhb0,5781
11
+ fastquadtree/pyqtree.py,sha256=2Khh1gCPalD4z0gb3EmqtzMoga08E9BkB0j5bwkiRPU,6076
12
12
  fastquadtree/rect_quadtree.py,sha256=7F-JceCHn5RLhztxSYCIJEZ_e2TV-NeobobbrdauJQA,3024
13
- fastquadtree-1.1.0.dist-info/RECORD,,
13
+ fastquadtree-1.1.2.dist-info/RECORD,,