File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1102,7 +1102,7 @@ def _check_local_cache(self):
11021102 self .table ["productFilename" ],
11031103 )
11041104 ]
1105- files_exist = [os .path .isfile (path ) for path in local_paths ]
1105+ files_exist = np . array ( [os .path .isfile (path ) for path in local_paths ])
11061106 return files_exist , np .array (local_paths , dtype = str )
11071107
11081108 # @suppress_stdout
Original file line number Diff line number Diff line change 1818from .utils import SearchDeprecationError , SearchError , table_keys
1919
2020PREFER_CLOUD = config .PREFER_CLOUD
21- DOWNLOAD_CLOUD = config .DOWNLOAD_CLOUD
2221
2322pd .options .display .max_rows = 10
2423
Original file line number Diff line number Diff line change @@ -621,6 +621,7 @@ def test_tess_return_clouduri_not_download():
621621 # A SPOC TPF is on the cloud, this should return a S3 bucket
622622 mask = toi .timeseries .pipeline == "SPOC"
623623 lc_man = toi .timeseries [mask ][0 ].download ()
624+
624625 assert lc_man ["Local Path" ][0 ].startswith ("s3://" )
625626
626627
@@ -688,14 +689,14 @@ def test_cached_files_no_filesize_check():
688689 assert files_man2 ["Status" ][0 ] == "COMPLETE"
689690 assert files_man2 ["Status" ][1 ] == "UNKNOWN"
690691
691- files .download ()
692692 config .reload ()
693693 config .CHECK_CACHED_FILE_SIZES = False
694694 config .DOWNLOAD_CLOUD = False
695695 manifest = files .download ()
696696 # This should return a manifest with 1 TESS-SPOC HLSP that is not on the cloud
697697 # and one item from SPOC that is on the cloud
698698 # UPDATE: this TESS-SPOC lc is now in the cloud, so modifying the test to reflect this
699+
699700 assert manifest ["Local Path" ][0 ].startswith ("s3://" )
700701 # assert manifest["Local Path"][1].startswith("/")
701702 assert manifest ["Local Path" ][1 ].startswith ("s3://" )
You can’t perform that action at this time.
0 commit comments