Skip to content

Commit

Permalink
Default winter science filters (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein authored Aug 24, 2023
1 parent f98e819 commit 347db04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion wintertoo/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
winter_fields = pd.read_csv(winter_fields_path, sep=r"\s+")

SummerFilters = Literal["u", "g", "r", "i"]
WinterFilters = Literal["Y", "J", "Hs", "dark"]

WinterFilters = Literal["dark", "Y", "J", "Hs"]

SUMMER_FILTERS = list(typing.get_args(SummerFilters))
WINTER_FILTERS = list(typing.get_args(WinterFilters))
WINTER_SCIENCE_FILTERS = ["Y", "J", "Hs"]

SUMMER_BASE_WIDTH = 0.26112
WINTER_BASE_WIDTH = 1.0
Expand Down
4 changes: 2 additions & 2 deletions wintertoo/models/too.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from wintertoo.data import (
SUMMER_FILTERS,
WINTER_FILTERS,
WINTER_SCIENCE_FILTERS,
SummerFilters,
WinterFilters,
get_default_value,
Expand Down Expand Up @@ -157,7 +157,7 @@ class Summer(ToORequest):
class Winter(ToORequest):
"""Winter ToO Request"""

filters: list[WinterFilters] = WINTER_FILTERS
filters: list[WinterFilters] = WINTER_SCIENCE_FILTERS


class SummerFieldToO(Summer, FieldToO):
Expand Down

0 comments on commit 347db04

Please sign in to comment.