Skip to content

Commit

Permalink
Filter obsolete acquisition filters
Browse files Browse the repository at this point in the history
  • Loading branch information
swalker2m committed Feb 28, 2025
1 parent 86b0c70 commit 663f222
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ object GmosNorthFilter {

/** Acquisition filter options. */
val acquisition: NonEmptyList[GmosNorthFilter] =
NonEmptyList.of(GPrime, RPrime, IPrime, ZPrime, UPrime)
NonEmptyList.fromListUnsafe(
List(GPrime, RPrime, IPrime, ZPrime, UPrime).filter(!_.obsolete)
)

/** Select the member of GmosNorthFilter with the given tag, if any. */
def fromTag(s: String): Option[GmosNorthFilter] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ object GmosSouthFilter {

/** Acquisition filter options. */
val acquisition: NonEmptyList[GmosSouthFilter] =
NonEmptyList.of(UPrime, GPrime, RPrime, IPrime, ZPrime)
NonEmptyList.fromListUnsafe(
List(UPrime, GPrime, RPrime, IPrime, ZPrime).filter(!_.obsolete)
)

/** Select the member of GmosSouthFilter with the given tag, if any. */
def fromTag(s: String): Option[GmosSouthFilter] =
Expand Down

0 comments on commit 663f222

Please sign in to comment.