Skip to content

Commit d72ff81

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 36e8ea8 commit d72ff81

File tree

13 files changed

+2
-17
lines changed

13 files changed

+2
-17
lines changed

example/example_laz_writer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
# This function will generate `NUM_POINTS` random points within the voxel bounds
1616
def RandomPoints(las_header, number_points):
17-
1817
# Create a Points object based on the LAS header
1918
points = copc.Points(las_header)
2019

example/example_writer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
if not os.path.exists(os.path.join(os.path.join(DATADIRECTORY, "out"))):
99
os.makedirs(os.path.join(DATADIRECTORY, "out"))
1010

11+
1112
# In this example, we'll filter the autzen dataset to only contain depth levels 0-3.
1213
def TrimFileExample(compressor_example_flag):
13-
1414
# We'll get our point data from this file
1515
reader = copc.FileReader(os.path.join(DATADIRECTORY, "autzen-classified.copc.laz"))
1616

@@ -188,7 +188,6 @@ def ResolutionTrimFileExample():
188188

189189
# This function will generate `NUM_POINTS` random points within the voxel bounds
190190
def RandomPoints(key, las_header, number_points):
191-
192191
# Voxel cube dimensions will be calculated from the maximum spacing of the file
193192
span = max(
194193
{
@@ -234,7 +233,6 @@ def RandomPoints(key, las_header, number_points):
234233

235234
# In this example, we'll create our own file from scratch
236235
def NewFileExample():
237-
238236
# Create our new file with the specified format, scale, and offset
239237
cfg = copc.CopcConfigWriter(
240238
point_format_id=8,

python/copclib/mp/read.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import concurrent.futures
66

7+
78
# Initialize each multiprocessing thread with a copy of the copc reader
89
def init_mp(copc_path):
910
_read_node.copc_reader = copc.FileReader(copc_path)

test/box_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
def test_box_constructors():
8-
98
# 2D box constructor
109
box = copc.Box(1.0, 0.0, 1.0, 1.0)
1110
assert box.x_min == 1.0
@@ -63,7 +62,6 @@ def test_box_constructors():
6362

6463

6564
def test_box_functions():
66-
6765
# Intersects 2D box
6866
## Contains
6967
assert copc.Box(0, 0, 4, 4).Intersects((1, 1, 2, 2))

test/extents_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
def test_copc_extents():
9-
109
point_format_id = 7
1110
num_eb_items = 3
1211

test/key_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def test_get_parents():
104104

105105

106106
def test_key_spatial_functions():
107-
108107
# Make a LasHeader with span 2
109108
header = copc.LasHeader()
110109
header.min = (0, 0, 0)

test/mp_read_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def test_xyz_map_class_limit():
5454
)
5555

5656
for node in reader.GetAllNodes():
57-
5857
points = reader.GetPoints(node)
5958
point_limit = [p for p in points if p.classification in classification_limits]
6059
if len(point_limit) == 0:

test/pickle_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def test_node():
3737

3838

3939
def test_las_header():
40-
4140
reader = copc.FileReader(get_autzen_file())
4241
las_header = reader.copc_config.las_header
4342

test/point_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ def test_operator_copy():
374374

375375

376376
def test_scaled_xyz():
377-
378377
pfid = 8
379378

380379
# No scale and offset

test/points_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ def test_points_group_accessors():
255255

256256

257257
def test_within():
258-
259258
points = copc.Points(6)
260259

261260
# generate points
@@ -278,7 +277,6 @@ def test_within():
278277

279278

280279
def test_get_within():
281-
282280
points = copc.Points(6)
283281

284282
# generate points

test/reader_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ def test_point_error_handling():
149149

150150

151151
def test_spatial_query_functions():
152-
153152
reader = copc.FileReader(get_autzen_file())
154153

155154
# Make horizontal 2D box of [400,400] roughly in the middle of the point cloud.

test/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def generate_test_file():
3333

3434
# This function will generate `NUM_POINTS` random points within the voxel bounds
3535
def RandomPoints(key, las_header, number_points):
36-
3736
# Voxel cube dimensions will be calculated from the maximum spacing of the file
3837
span = max(
3938
{

test/writer_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ def test_writer_copy():
337337

338338

339339
def test_writer_copy_and_update():
340-
341340
# Create test file
342341
orig_point_format_id = 7
343342
orig_scale = copc.Vector3(0.1, 0.1, 0.1)
@@ -693,7 +692,6 @@ def test_writer_copy_and_update():
693692

694693

695694
def test_check_spatial_bounds():
696-
697695
file_path = os.path.join(get_data_dir(), "writer_test.copc.laz")
698696

699697
cfg = copc.CopcConfigWriter(7, (0.1, 0.1, 0.1), (50, 50, 50))

0 commit comments

Comments
 (0)