Skip to content

fix: implement all ??? stubs from typelevel/squants#252 - #694

Open
mithunbabbira wants to merge 1 commit into
typelevel:masterfrom
mithunbabbira:fix/typelevel-squants-252-implment-stubs
Open

mithunbabbira wants to merge 1 commit into
typelevel:masterfrom
mithunbabbira:fix/typelevel-squants-252-implment-stubs

Conversation

@mithunbabbira

Copy link
Copy Markdown

Implements all remaining ??? stubs from Issue #252:

New Types Created (7)

  • SurfaceTension (squants.motion) - Force/Length
  • DynamicViscosity (squants.motion) - Pressure*Time
  • SubstanceConcentration (squants.mass) - ChemicalAmount/Volume
  • SpecificVolume (squants.space) - Volume/Mass
  • MolarVolume (squants.space) - Volume/ChemicalAmount
  • Insolation (squants.energy) - Energy/Area
  • AbsorbedEnergyRate (squants.energy) - Energy/Time

Stubs Implemented (8)

  • Energy./(Area) -> Insolation
  • SpecificEnergy./(Time) -> AbsorbedEnergyRate
  • Force./(Length) -> SurfaceTension
  • Pressure.*(Time) -> DynamicViscosity
  • ChemicalAmount./(Volume) -> SubstanceConcentration
  • Volume./(Mass) -> SpecificVolume
  • Volume./(ChemicalAmount) -> MolarVolume
  • Dose./(Time) -> AbsorbedEnergyRate

Excluded

  • Electro files: already implemented in a prior PR/commit
  • Money.scala: intentionally left as ??? (per issue, uses MoneyContext)

Refs: #252

Add 7 new quantity types referenced by existing stubs:
- SurfaceTension (Force/Length) in squants.motion
- DynamicViscosity (Pressure*Time) in squants.motion
- SubstanceConcentration (ChemicalAmount/Volume) in squants.mass
- SpecificVolume (Volume/Mass) in squants.space
- MolarVolume (Volume/ChemicalAmount) in squants.space
- Insolation (Energy/Area) in squants.energy
- AbsorbedEnergyRate (Energy/Time) in squants.energy

Replace all ??? stubs with proper implementations:
- Energy./(Area) -> Insolation
- SpecificEnergy./(Time) -> AbsorbedEnergyRate
- Force./(Length) -> SurfaceTension
- Pressure.*(Time) -> DynamicViscosity
- ChemicalAmount./(Volume) -> SubstanceConcentration
- Volume./(Mass) -> SpecificVolume
- Volume./(ChemicalAmount) -> MolarVolume
- Dose./(Time) -> AbsorbedEnergyRate

Respects Money.scala stubs (intentionally left as ??? per issue).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant