1313from morphman .common import get_inlet_and_outlet_centers , get_path_names , compute_centerlines , prepare_surface
1414
1515
16- def download_testdata (test_path , outputfile ):
16+ def download_testdata (test_path , output_file ):
1717 if platform == "darwin" :
18- system ("curl -L {} --output {}" .format (test_path , outputfile ))
18+ system ("curl -L {} --output {}" .format (test_path , output_file ))
1919 elif platform == "linux" or platform == "linux2" :
20- system ("wget -O {} {}" .format (outputfile , test_path ))
20+ system ("wget -O {} {}" .format (output_file , test_path ))
2121 elif platform == "win32" :
22- system ("bitsadmin /transfer download_model /download /priority high {} {}" .format (test_path , outputfile ))
22+ system ("bitsadmin /transfer download_model /download /priority high {} {}" .format (test_path , output_file ))
2323
2424
2525@pytest .fixture (scope = "module" )
@@ -29,15 +29,16 @@ def surface_paths():
2929 # Path to test data
3030 # TODO: Replace with official Aneurisk database when available
3131 test_path = "https://github.com/hkjeldsberg/AneuriskDatabase/raw/master/models/C0001/surface/model.vtp"
32- outputfile = path .join (abs_path , "C0001" , "surface" , "model.vtp" )
32+ output_file = path .join (abs_path , "C0001" , "surface" , "model.vtp" )
3333
34- # Download test data if necessary
34+ # Create test data folders
3535 if not path .exists (path .join (abs_path , "C0001" , "surface" )):
3636 makedirs (path .join (abs_path , "C0001" , "surface" ))
3737
38+ # Download test data if necessary
3839 if not path .exists (path .join (abs_path , "C0001" , "surface" , "model.vtp" )):
3940 try :
40- download_testdata (test_path , outputfile )
41+ download_testdata (test_path , output_file )
4142 except Exception :
4243 raise Exception ("Problem downloading the testdata, please do it manually from "
4344 + test_path + " and extract the compressed tarball in the test folder" )
0 commit comments