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
Missing Missing methods for angle, hypot and 2-arg atan #32224
Comments
https://github.com/JuliaLang/julia/blob/master/doc/build/windows.md#cygwin-to-mingw-cross-compiling the packages can be easily installed
|
I'm curious --- did you actually encounter a need for these or do you just think they should be defined for general reasons? |
@musm Trying to build, I get @JeffBezanson I did encounter a need: I was calculating speed ( |
@yha usually that error is fixed by rerunning make |
You could try making a PR directly from GitHub. In general I wouldn't recommend that, but in this case it's quite simple (just add the function names to the existing loops in base/missing.jl and test/missing.jl), so it should be doable. |
All math functions need methods for Using Revise and adding the method It's a doozy of a seg fault. My other shell has lost its user ID, and I can't ssh from a new window anymore. Needless to say, I haven't been able to do intensive testing. Julia 1.5.3 nalimilan Copr port on CentOS. |
It is hard to define "math functions" and people have also claimed that every "string function" should also have an extra method for Instead, you can use explicit tools like |
In this case, the error is that the basic safe behavior, that an operation (multiplying by pi/180) on a missing returns missing, did not accept the missing type. Since my data are Floats, I will use a cringeworthy function to preemptively convert all missing to NaN. |
OP if you aren't aware of Find the highest-level function that accepts a scalar and wrap it in |
Thanks. I was not aware of ‘passmissing’, but will find it useful. The type error here was actually from trying to broadcast on an array defined in the lexical scope of the function, rather than an argument passed into the function. |
Should be fixed with
I would open a PR if I could get Julia to build on my Windows machine...
The text was updated successfully, but these errors were encountered: