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 Julia 1.0 compatibility #138

Merged
merged 6 commits into from
Apr 8, 2022
Merged

Fix Julia 1.0 compatibility #138

merged 6 commits into from
Apr 8, 2022

Conversation

devmotion
Copy link
Member

Fix Julia 1.0 compatibility by reverting #113 and fixing some test tolerances.

I don't think there is a good way to fix Julia 1.0 compatibility without reverting that PR since only SpecialFunctions 0.8 supports Julia 1.0 but many fixes in more recent SpecialFunctions versions are required. E.g., gamma_inc_inv contains an undefined variable r in SpecialFunctions 0.8, i.e., fixing this problem would require us to reimplement gamma_inc_inv in StatsFuns.

#113 will be reapplied and released as part of StatsFuns 0.10.0 for Julia >= 1.3 and recent versions of SpecialFunctions.

Fixes #136.

@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2022

Codecov Report

Merging #138 (3decb2b) into master (4451970) will decrease coverage by 7.61%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #138      +/-   ##
==========================================
- Coverage   56.60%   48.98%   -7.62%     
==========================================
  Files          13       13              
  Lines         530      445      -85     
==========================================
- Hits          300      218      -82     
+ Misses        230      227       -3     
Impacted Files Coverage Δ
src/distrs/beta.jl 100.00% <ø> (ø)
src/distrs/binom.jl 100.00% <ø> (+21.42%) ⬆️
src/distrs/fdist.jl 100.00% <ø> (ø)
src/distrs/gamma.jl 100.00% <ø> (+2.08%) ⬆️
src/distrs/pois.jl 100.00% <ø> (ø)
src/distrs/tdist.jl 100.00% <ø> (ø)
src/distrs/chisq.jl 100.00% <100.00%> (ø)
src/distrs/norm.jl 96.20% <0.00%> (-1.24%) ⬇️

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 4451970...3decb2b. Read the comment docs.

@devmotion
Copy link
Member Author

@nalimilan This bugfix and the follow-up PR are ready for review 🙂

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.

Using gamma_inc method not defined in SpecialFunctions minimum version
3 participants