JuliaPhysics / JuliaPhysics/Unitful.jl
How does preferunits work?
Open
- Dominant language
- Julia
- Stars
- 675
- Forks
- 124
- Avg merge
- 3h 38m
- Merged PRs (30d)
- 1
Description
Dear developers,
I would like to go to a convention where MeV are the preferred unit. However, this does not work:
```
Unitful.preferunits(u"MeV")
preferunits can only be used with a unit that has a pure dimension, like 𝐋 or 𝐓 but not 𝐋/𝐓.
```
What is the correct syntax?
Best,
v.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Unitful.preferunits(u"MeV") example and the reported pure-dimension error. Determine the correct syntax or limitation for preferring MeV, then document the usage and verify that the resulting guidance addresses the question.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- tooling
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100