Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerapritchard committed Apr 26, 2024
1 parent 3e12a82 commit 3ea64e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/tssc/TESSSearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ def search_individual_ffi(
new_table.table["year"] = new_table.table["obs_id"].apply(
(lambda x: int(x.split("-")[0][4:8]))
)
new_table.table["sector"] = new_table.table["obs_id"].apply(lambda x: int(x.split("-")[1][1:]))
new_table.table["sector"] = new_table.table["obs_id"].apply(
lambda x: int(x.split("-")[1][1:])
)
return new_table

def filter_table(
Expand Down
8 changes: 4 additions & 4 deletions tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def test_search_cubedata():
assert len(MASTSearch(tic, mission="TESS").table) > 1
assert (
len(
TESSSearch(tic, pipeline="SPOC", sector=1, search_radius=100).timeseries.table
TESSSearch(
tic, pipeline="SPOC", sector=1, search_radius=100
).timeseries.table
)
== 2
)
Expand Down Expand Up @@ -257,7 +259,6 @@ def test_issue_472():
TESSSearch("TIC41336498", sector=2).tesscut



""" This test used in OG Lightkurve used the fact that we were failing when we
tried to read the file into memmory after a download call. In this package we
are never reading a file into memmory so we cannot trivially replicate this test.
Expand Down Expand Up @@ -350,11 +351,10 @@ def test_overlapping_targets_718():
assert len(search) > 1



def test_tesscut_795():
"""Regression test for #795: make sure the __repr__.of a TESSCut
SearchResult works."""
str(TESSSearch("KIC 8462852"))
str(TESSSearch("KIC 8462852"))


def test_exptime_filtering():
Expand Down

0 comments on commit 3ea64e0

Please sign in to comment.