diff --git a/src/newlk_search/search.py b/src/newlk_search/search.py index 4dbb5d3..7089f29 100644 --- a/src/newlk_search/search.py +++ b/src/newlk_search/search.py @@ -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']]) diff --git a/tests/test_search.py b/tests/test_search.py index c8edc19..05ef606 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -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 @@ -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