Skip to content

Commit 5c939cd

Browse files
committed
test fix
1 parent 75bbf66 commit 5c939cd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/lksearch/mast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/lksearch/tess.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from .utils import SearchDeprecationError, SearchError, table_keys
1919

2020
PREFER_CLOUD = config.PREFER_CLOUD
21-
DOWNLOAD_CLOUD = config.DOWNLOAD_CLOUD
2221

2322
pd.options.display.max_rows = 10
2423

tests/test_missionsearch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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://")

0 commit comments

Comments
 (0)