Skip to content

Commit

Permalink
Added docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneSpang authored Mar 6, 2025
1 parent ed90ca2 commit f4f80a6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Units.jl
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,11 @@ function Unitful.superscript(i::Float64)
end
end

function upgrade_GeoUnits(a)
return GEO_units(length = a.length, temperature = a.temperature, stress = a.stress, viscosity = a.viscosity)
"""
Function which recreates an outdated `GeoUnits` object in line with the current format
"""
function upgrade_GeoUnits(a)
return GEO_units(length = a.length, temperature = a.temperature, stress = a.stress, viscosity = a.viscosity)

Check warning on line 993 in src/Units.jl

View check run for this annotation

Codecov / codecov/patch

src/Units.jl#L992-L993

Added lines #L992 - L993 were not covered by tests
end

end

0 comments on commit f4f80a6

Please sign in to comment.