Skip to content

Commit

Permalink
modified tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nschanche committed Feb 2, 2024
1 parent 6c1e62f commit 91f15f1
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 68 deletions.
6 changes: 3 additions & 3 deletions src/newlk_search/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ def _filter_products(

# Kepler data needs a special filter for quarter and month
mask &= ~np.array(
[prov.lower() == "kepler" for prov in products["provenance_name"]]
[prov.lower() == "kepler" for prov in products["provenance_name"].values]
)

if "kepler" in provenance_lower and campaign is None and sector is None:
Expand Down Expand Up @@ -1360,9 +1360,9 @@ def _mask_by_exptime(products, exptime):
elif isinstance(exptime, str):
exptime = exptime.lower()
if exptime in ["fast"]:
mask &= products["exptime"] <= 60
mask &= products["exptime"] < 60
elif exptime in ["short"]:
mask &= (products["exptime"] > 60) & (products["exptime"] <= 120)
mask &= (products["exptime"] >= 60) & (products["exptime"] <= 120)
elif exptime in ["long", "ffi"]:
mask &= products["exptime"] > 120
return mask
Expand Down
Loading

0 comments on commit 91f15f1

Please sign in to comment.