-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #976 from gemini-hlsw/nearest-emission-line
Changes to support emission lines throughout, especially ITC
- Loading branch information
Showing
10 changed files
with
104 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
modules/core/shared/src/main/scala/lucuma/core/math/dimensional/package.scala
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
modules/core/shared/src/main/scala/lucuma/core/math/dimensional/syntax.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// 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.core.math.dimensional | ||
|
||
import coulomb.Quantity | ||
import lucuma.core.util.* | ||
|
||
object syntax: | ||
extension[N, U](quantity: Quantity[N, U]) | ||
|
||
/** | ||
* Convert a coulomb `Quantity` to a `Measure` with runtime unit representation. | ||
*/ | ||
def toMeasure(using unit: UnitOfMeasure[U]): Measure[N] = Measure(quantity.value, unit) | ||
|
||
/** | ||
* Convert a coulomb `Quantity` to a `Measure` with runtime unit representation and tag `Tag`. | ||
*/ | ||
def toMeasureTagged[T](using ev: TaggedUnit[U, T]): Measure[N] Of T = { | ||
val tagged: Measure[N] Of T = tag[T](Measure(quantity.value, ev.unit)) | ||
tagged | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters