-
Notifications
You must be signed in to change notification settings - Fork 15
Hotfix: Render np.float64(nan) as null instead of nan #201
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
Hotfix: Render np.float64(nan) as null instead of nan #201
Conversation
…on/develop PR for v.1.9.3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @ThomasGl ! #200 is a great catch, and this PR is a great solution. I've got one minor suggestion that I'd recommend which I've commented on the specific line. Thanks for the PR! If you make the adjustment, I'll run the CI/CD tests and incorporate the PR into a patch fix for Highcharts Core for Python.
fefe11c
to
6f2b045
Compare
@hcpchris I have adjusted the PR with a an amend to my commit, thank you for the suggestion. I tested locally on my machine and it does indeed to do the trick to keep numpy as a soft dependency |
Hi Chris, it seems there's some safety block preventing the build to pass successfully, let me know if you have any tips on how to correctly adjust this part. Thanks |
Hi Chris, let me know if you found something that could assist me. Best regards, |
Hi @ThomasGl : I looked into it, and the issue is tied to how NumPy casts (converts) objects of different types into a single type when evaluating them in their "universal functions" (of which By default, NumPy applies The CI/CD errors are occurring because the The fix I would recommend would be to adjust the conditional
This should allow NumPy to still apply |
6f2b045
to
d8004e0
Compare
Hi Chris, looks like it worked indeed. Build was successfull. Let me know if there's any extra steps from my part! |
Correction: the build didn't work. It crashed with the same errors as before, 'safe' casting |
Hi Chris hows it going? Do you have any other guesses on how to address the build? |
Hey chris, is there any follow up on this PR? |
Hi @ThomasGl - Sorry for the delay on this. I've been trying to find a better generic solution since |
@ThomasGl : Okay, I seem to have resolved the issue. I did the following:
Given this, I'm going to close this PR (without merging your now out-dated changes), and merge the |
This is a solution to the error I made at the Issue No. 200
Such fix allows us to run the following code:
And get:
Under the hood it's swapping
nan
fornull
, which is a validNone
under javascript.