@@ -35,7 +35,7 @@ def test_load_photoscan(example_database:Database, tmp_path:Path):
3535 subject_id = "example_subject"
3636 session_id = "example_session"
3737 photoscan_id = "example_photoscan"
38- photoscan_info = example_database .get_photoscan_info (subject_id , session_id , photoscan_id )
38+ photoscan_info = example_database .get_photoscan_absolute_filepaths_info (subject_id , session_id , photoscan_id )
3939 [model , texture ] = load_data_from_filepaths (photoscan_info ["model_abspath" ], photoscan_info ["texture_abspath" ])
4040 assert model is not None
4141 assert texture is not None
@@ -51,6 +51,10 @@ def test_load_photoscan(example_database:Database, tmp_path:Path):
5151 assert isinstance (model , vtkPolyData )
5252 assert isinstance (texture ,vtkImageData )
5353
54+ # From photoscan info
55+ photoscan_from_info = Photoscan .from_absolute_filepaths_info (photoscan_info )
56+ assert photoscan == photoscan_from_info
57+
5458 bogus_file = Path (tmp_path / "test_db_files/bogus_photoscan.pdf" )
5559 bogus_file .parent .mkdir (parents = True , exist_ok = True )
5660 bogus_file .touch ()
@@ -64,6 +68,7 @@ def test_load_photoscan(example_database:Database, tmp_path:Path):
6468 with pytest .raises (FileNotFoundError , match = "does not exist" ):
6569 load_data_from_filepaths (bogus_file , photoscan_info ["texture_abspath" ])
6670
71+
6772def test_convert_between_ras_and_lps ():
6873
6974 # Create example data
0 commit comments