Skip to content

Commit

Permalink
Make Unitful.promote_to_derived usable again
Browse files Browse the repository at this point in the history
fix PainterQubits#237

Seems like `ResistanceFreeUnits` where renamed to `ElectricalResistanceFreeUnits` without testing `Unitful.promote_to_derived()`
  • Loading branch information
ChristianKurz authored Jul 3, 2019
1 parent 86c592f commit 93121f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkgdefaults.jl
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ function promote_to_derived()
Unitful.promote_unit(::S, ::T) where
{S<:VoltageFreeUnits, T<:VoltageFreeUnits} = Unitful.V
Unitful.promote_unit(::S, ::T) where
{S<:ResistanceFreeUnits, T<:ResistanceFreeUnits} = Unitful.Ω
{S<:ElectricalResistanceFreeUnits, T<:ElectricalResistanceFreeUnits} = Unitful.Ω
Unitful.promote_unit(::S, ::T) where
{S<:CapacitanceFreeUnits, T<:CapacitanceFreeUnits} = Unitful.F
Unitful.promote_unit(::S, ::T) where
Expand Down

0 comments on commit 93121f9

Please sign in to comment.