Skip to content

Commit

Permalink
added tesscut test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nschanche committed Dec 19, 2024
1 parent a9176f9 commit 5ef7e7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lksearch/TESSSearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(
pipeline = np.atleast_1d(pipeline)

# Sending 'pipeline' to MASTSearch init causes a SearchError, so handle that separately
if "tesscut" in [p.lower() for p in pipeline] or (type(pipeline) is type(None)):
if (type(pipeline) is type(None)) or ("tesscut" in [p.lower() for p in pipeline]) :
add_tesscut = True
pipeline = np.delete(
pipeline, [p.lower() for p in pipeline].index("tesscut")
Expand Down
5 changes: 4 additions & 1 deletion tests/test_missionsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,12 @@ def test_FFI_retrieval():
def test_tesscut():
"""Can we find and download TESS tesscut tpfs"""
results = TESSSearch("Kepler 16b", hlsp=False, sector=14)
results2 = TESSSearch("Kepler 16b", pipeline='TESScut', sector=14)
assert len(results) == 12
assert len(results.cubedata) == 2
manifest = results.cubedata[1].download()
assert len(results.tesscut) == 1
assert len(results.tesscut) == len(results2)
manifest = results.tesscut.download()
assert len(manifest) == 1


Expand Down

0 comments on commit 5ef7e7b

Please sign in to comment.