Sebastian Stock
Sebastian Stock
That’s fine too, although I like that the units are defined immediately after the constants on which they are based.
That method is definitely wrong and should be removed. If I had to guess, I would say it was added for cases like `[1m, 2m] ≈ [1s, 2s]` and the...
Probably not. It is used to define the unit `eV`, but that definition could also be defined in the "Constants" section (as other units like `c` already are).
It would be good to get all of the usual range syntaxes to work with affine units. It does not seem too difficult to add. `1u"°C":0.1u"K":3u"°C"` already works but creates...
I wouldn’t change the `string` behavior to do this, but rather change `Base.show` (cf. also #470). The docstring for `show` says that its output should (if possible) be parsable, while...
Even if we work on #470 instead, I would like to include the first commit from this PR, since it is a performance improvement and doesn’t change any behavior. @michikawa07...
I am _slightly_ in favor of releasing a new version before merging this, because then people on Julia 1.0 still get #530 (which one could call a bugfix). The other...
> I just noticed that in #533 I put some `if isdefined` fences instead of `if VERSION`, those should all be true for Julia >= v1.6, so the fences can...
Because `one` returns the multiplicative identity, i.e., a value such that `one(x) * x == x`. Therefore, `one(5u"hr")` cannot return a value with units `hr`, because `1hr * 5hr` is...
It looks like BasicBSpline.jl does indeed solve the problems I had planned to address at some point. It also does a lot more. I don’t use BSplines.jl anymore and so...