JuliaPhysics / JuliaPhysics/DynamicQuantities.jl

Conversion to symbolic units doesn't work

Open
#169 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
155
Forks
32
PR merge metrics
No merged PRs in 30d

Description

The `uexpand` docstring states:

> Expand the symbolic units in a quantity with symbolic dimensions to their base SI form. In other
words, this converts a quantity with AbstractSymbolicDimensions to one with Dimensions. The
opposite of this function is uconvert, for converting to specific symbolic units, or, e.g.,
**convert(Quantity{<:Any,<:AbstractSymbolicDimensions}, q), for assuming SI units as the output
symbols**.

But:

```
julia> convert(DQ.Quantity{<:Any,<:DQ.AbstractSymbolicDimensions}, DQ.u"kg") |> typeof
DynamicQuantities.Quantity{Float64, DynamicQuantities.Dimensions{DynamicQuantities.FixedRational{Int32, 25200}}}
```

So the dimensions have not become symbolic, how can I do this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.