Skip to content

Commit aebf167

Browse files
committed
test
1 parent fe3748a commit aebf167

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- [fix] fix use of tempory file in windows
1+
- [fix] fix use of temporary file in windows
22

33
# 1.15.5
44
- [optimization] replace_area_plointcloud: select polygons in replace_area that intersect target LAS.

pdaltools/standardize_format.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ def standardize(
108108
pipeline.execute()
109109

110110
# remove the temporary file
111-
if rename_dims and os.path.exists(tmp_file_name):
112-
os.remove(tmp_file_name)
111+
#if rename_dims and os.path.exists(tmp_file_name):
112+
# os.remove(tmp_file_name)
113+
if rename_dims:
114+
assert not os.path.exists(tmp_file_name)
113115

114116

115117
def main():

test/test_add_points_in_pointcloud.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def test_parse_args():
429429

430430

431431
def test_namedtemporaryfile_delete_on_close_false():
432-
"""Test that NamedTemporaryFile could be use on windows in the context with delete_on_close=False"""
432+
"""Test that NamedTemporaryFile could be used on windows in the context with delete_on_close=False"""
433433
temp_file_path = None
434434

435435
with tempfile.NamedTemporaryFile(suffix="_test.las", delete_on_close=False) as tmp:
@@ -449,7 +449,7 @@ def test_namedtemporaryfile_delete_on_close_false():
449449

450450

451451
def test_namedtemporaryfile_delete_false_with_pdal():
452-
"""Test that NamedTemporaryFile could be use on windows in the context
452+
"""Test that NamedTemporaryFile could be used on windows in the context
453453
with delete_on_close=False and some pdal operations"""
454454

455455
def read_las(input_las, tmp):

0 commit comments

Comments
 (0)