Skip to content
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

Fix issue serializing Spinner widgets with negative infinity value #3154

Merged
merged 1 commit into from
Jan 30, 2022

Conversation

philippjfr
Copy link
Member

This fix works because the Spinner widget cannot render infinite values anyway. So this successfully avoids the error. A change in bokeh would be needed to actually support rendering (and entering) positive/negative infinity values in the widget.

Fixes #1998

@philippjfr philippjfr changed the title Fix issue serializing Spinner widgets with negative value Fix issue serializing Spinner widgets with negative infinity value Jan 30, 2022
@codecov
Copy link

codecov bot commented Jan 30, 2022

Codecov Report

Merging #3154 (a34d035) into master (5bd9fc8) will decrease coverage by 0.01%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3154      +/-   ##
==========================================
- Coverage   82.99%   82.98%   -0.02%     
==========================================
  Files         192      192              
  Lines       25482    25488       +6     
==========================================
+ Hits        21150    21152       +2     
- Misses       4332     4336       +4     
Impacted Files Coverage Δ
panel/widgets/input.py 96.29% <60.00%> (-0.46%) ⬇️
panel/io/reload.py 69.23% <0.00%> (-2.20%) ⬇️
panel/viewable.py 70.44% <0.00%> (ø)
panel/io/save.py 62.60% <0.00%> (+0.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5bd9fc8...a34d035. Read the comment docs.

@philippjfr philippjfr merged commit e157661 into master Jan 30, 2022
@philippjfr philippjfr deleted the negative_inf_fix branch January 30, 2022 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Displaying param.Number doesn't support float("-inf")
1 participant