Skip to content

Commit

Permalink
Added ffi tests back in
Browse files Browse the repository at this point in the history
  • Loading branch information
Nschanche committed Feb 2, 2024
1 parent 3f096c3 commit fbbd2ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/newlk_search/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,7 @@ def _search_products(

# Add in the start and end times for each observation
if query_result is not None:
print(pd.to_datetime([Time(x + 2400000.5, format="jd").iso for x in query_result['t_min']]))
query_result["start_time"] = pd.to_datetime([Time(x + 2400000.5, format="jd").iso for x in query_result['t_min']])
query_result["end_time"] = pd.to_datetime([Time(x + 2400000.5, format="jd").iso for x in query_result['t_max']])

Expand Down
4 changes: 2 additions & 2 deletions tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def test_search_timeseries(caplog):


#@pytest.mark.remote_data
'''def test_search_tesscut():
def test_search_tesscut():
# Cutout by target name
assert len(search_tesscut("pi Mensae", sector=1).table) == 1
assert len(search_tesscut("pi Mensae").table) > 1
Expand All @@ -182,7 +182,7 @@ def test_search_timeseries(caplog):
assert len(search_string.table) == len(search_coords.table)
# The coordinates below are beyond the edge of the sector 4 (camera 1-4) FFI
search_edge = search_tesscut("30.578761, 6.210593", sector=4)
assert len(search_edge.table) == 0'''
assert len(search_edge.table) == 0


#@pytest.mark.remote_data
Expand Down

0 comments on commit fbbd2ac

Please sign in to comment.