Skip to content

use the preference system for nan safe mode - #539

Merged
KristofferC merged 1 commit into
masterfrom
kc/pref_nan
Oct 14, 2021
Merged

KristofferC merged 1 commit into
masterfrom
kc/pref_nan

Conversation

@KristofferC

Copy link
Copy Markdown
Collaborator

No description provided.

@KristofferC

Copy link
Copy Markdown
Collaborator Author

Closes #181 I think

@KristofferC KristofferC reopened this Jul 28, 2021
@codecov-commenter

codecov-commenter commented Jul 28, 2021 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.88%. Comparing base (80a13d9) to head (5b4b320).
⚠️ Report is 123 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #539      +/-   ##
==========================================
- Coverage   84.90%   84.88%   -0.02%     
==========================================
  Files           9        9              
  Lines         828      827       -1     
==========================================
- Hits          703      702       -1     
  Misses        125      125              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@devmotion

Copy link
Copy Markdown
Member

What's holding back this PR? It would be great if switching to NaN-safe mode would be easier.

@KristofferC

Copy link
Copy Markdown
Collaborator Author

Nothing really. Someone to review it perhaps.

@devmotion devmotion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My knowledge about Preferences is only based on its README, but according to this it looks good to me. Seems to match the instructions in https://github.com/JuliaPackaging/Preferences.jl#conditional-loading.

@KristofferC
KristofferC merged commit 2395bb3 into master Oct 14, 2021
@devmotion
devmotion deleted the kc/pref_nan branch October 14, 2021 18:19
@devmotion devmotion mentioned this pull request Oct 14, 2021
@chriselrod

Copy link
Copy Markdown
Contributor

How does one @set_preferences!?

@devmotion

devmotion commented Aug 22, 2022 •

Copy link
Copy Markdown
Member

As a user you would use set_preferences!: https://juliadiff.org/ForwardDiff.jl/dev/user/advanced/#Fixing-NaN/Inf-Issues

@chriselrod

Copy link
Copy Markdown
Contributor
julia> using ForwardDiff, Preferences

julia> set_preferences!(ForwardDiff, "nansafe_mode" => true)

Ah, thanks!

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.

4 participants