All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lucuma.itc.input.GmosSImagingInput.scala Maven / Gradle / Ivy

There is a newer version: 0.22.3
Show newest version
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA)
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause

package lucuma.itc.input

import cats.syntax.parallel.*
import lucuma.core.enums.GmosSouthFilter
import lucuma.core.model.sequence.gmos.GmosCcdMode
import lucuma.odb.graphql.binding.*
import lucuma.odb.graphql.input.GmosCcdModeInput

case class GmosSImagingInput(
  filter:  GmosSouthFilter,
  ccdMode: Option[GmosCcdMode]
) extends InstrumentModesInput

object GmosSImagingInput {

  def binding: Matcher[GmosSImagingInput] =
    ObjectFieldsBinding.rmap {
      case List(GmosSouthFilterBinding("filter", filter),
                GmosCcdModeInput.Binding.Option("ccdMode", ccdMode)
          ) =>
        (filter, ccdMode).parMapN(apply)
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy