New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Missings #188
Comments
|
Yeah. We already have that |
Sounds good, thanks! |
Additionally methods like: *(y::Missing, x::T) where {T<:Units} = missing
ustrip(x::Missing) = missing would be good to have |
Any idea of the set of methods needed for a complete Unitful missings PR? |
I've been using Unitful.uconvert(::Any, ::Missing) = missing
Unitful.ustrip(::Missing) = missing
Unitful.unit(::Type{Union{Missing, T}}) where T = unit(T)
Base.:*(::Missing, ::Unitful.Units) = missing
Base.:/(::Missing, ::Unitful.Units) = missing and it works fine. It has been heavily tested. If anyone wants to PR that code, please do. |
Also Base.:^(::Unitful.Units, ::Missing) = missing ? |
Should The same question also applies to |
|
Closed by #208 |
We're transitioning to
missing
values in our code base, instead ofNaN
, and find that there are some... missing... methods, likeuconvert(::Unitful.FreeUnits, ::Missing)
. I assume that it just hasn't been implemented yet? If so, I'll make a PR.The text was updated successfully, but these errors were encountered: