Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ENH: Add special casing for zero-division in the ARMC error func #278

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

BvB93
Copy link
Member

@BvB93 BvB93 commented Apr 11, 2022

cc @RobertaPascazio

The error functions will now return infinity instead of nan when 0-division occurs upon computing ARMC error functions. An exception is made for the special case wherein both operands are zero, in which case the resulting error will also be zero.

@BvB93 BvB93 added the enhancement New feature or request label Apr 11, 2022
@BvB93 BvB93 added this to the 0.10.2 milestone Apr 11, 2022
@codecov
Copy link

codecov bot commented Apr 11, 2022

Codecov Report

Merging #278 (1c8dbf1) into master (11ad965) will decrease coverage by 0.25%.
The diff coverage is 7.14%.

@@            Coverage Diff             @@
##           master     #278      +/-   ##
==========================================
- Coverage   75.32%   75.07%   -0.26%     
==========================================
  Files          66       66              
  Lines        7093     7104      +11     
  Branches     1358     1363       +5     
==========================================
- Hits         5343     5333      -10     
- Misses       1410     1434      +24     
+ Partials      340      337       -3     
Impacted Files Coverage Δ
FOX/armc/err_funcs.py 22.12% <7.14%> (-4.94%) ⬇️
FOX/io/read_xyz.py 71.15% <0.00%> (+0.13%) ⬆️

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 11ad965...1c8dbf1. Read the comment docs.

@BvB93 BvB93 merged commit 6c7e337 into master Apr 11, 2022
@BvB93 BvB93 deleted the 0_div branch April 11, 2022 11:03
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant