File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff 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
115117def main ():
Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ def test_parse_args():
429429
430430
431431def 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
451451def 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 ):
You can’t perform that action at this time.
0 commit comments