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

Allow for setting the default specialization via Preferences #252

Merged
merged 3 commits into from
Sep 15, 2022

Conversation

ChrisRackauckas
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Sep 15, 2022

Codecov Report

Merging #252 (aaec405) into master (9fdd77d) will decrease coverage by 2.78%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #252      +/-   ##
==========================================
- Coverage   53.98%   51.20%   -2.79%     
==========================================
  Files          41       41              
  Lines        2949     2949              
==========================================
- Hits         1592     1510      -82     
- Misses       1357     1439      +82     
Impacted Files Coverage Δ
src/SciMLBase.jl 83.33% <ø> (ø)
src/scimlfunctions.jl 58.00% <ø> (ø)
src/problems/ode_problems.jl 55.84% <100.00%> (ø)
src/solutions/ode_solutions.jl 78.78% <0.00%> (-16.17%) ⬇️
src/integrator_interface.jl 33.56% <0.00%> (-11.99%) ⬇️
src/problems/problem_traits.jl 75.00% <0.00%> (-10.00%) ⬇️
src/ensemble/basic_ensemble_solve.jl 72.11% <0.00%> (-9.62%) ⬇️
src/interpolation.jl 25.67% <0.00%> (-3.45%) ⬇️
src/problems/sde_problems.jl 54.54% <0.00%> (-3.04%) ⬇️
src/solutions/solution_interface.jl 30.70% <0.00%> (-2.37%) ⬇️
... and 3 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ChrisRackauckas ChrisRackauckas merged commit 3d20777 into master Sep 15, 2022
@ChrisRackauckas ChrisRackauckas deleted the default_specialization branch September 15, 2022 10:19
Comment on lines +9 to +10
const DEFAULT_SPECIALIZATION = Preferences.@load_preference("SpecializationLevel",
AutoSpecialize)
Copy link
Member

Choose a reason for hiding this comment

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

Does this actually work for non-default values? Can one load types from the TOML file? I assumed it would only support values that are supported by TOML, such as e.g. booleans, numbers, or strings.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh interesting... I guess we'd need to parse the string into a type definition?

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.

None yet

2 participants