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 write-to-copy warning in process_rff_sample() #116

Merged
merged 2 commits into from
Jul 21, 2023
Merged

Conversation

brews
Copy link
Member

@brews brews commented Jul 21, 2023

Close #114

I think this avoids the problem. Test covering this passes but I don't think it tested the case if input data has NA/ NaNs so someone please tell me if I missed something.

@brews brews added the bug Something isn't working label Jul 21, 2023
@brews brews changed the title Avoid potential write-to-copy problem Fix write-to-copy warning in process_rff_sample() Jul 21, 2023
@codecov
Copy link

codecov bot commented Jul 21, 2023

Codecov Report

Merging #116 (86708e8) into main (4cd0ec7) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #116   +/-   ##
=======================================
  Coverage   70.33%   70.33%           
=======================================
  Files          17       17           
  Lines        1847     1847           
=======================================
  Hits         1299     1299           
  Misses        548      548           
Impacted Files Coverage Δ
src/dscim/utils/rff.py 92.02% <100.00%> (ø)

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

@brews brews requested a review from JMGilbert July 21, 2023 00:21
@brews brews marked this pull request as ready for review July 21, 2023 00:21
@brews brews merged commit 6b51af5 into main Jul 21, 2023
@brews brews deleted the fix_write2copy branch July 21, 2023 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix value trying to be set on a copy of a slice from a DataFrame from tests
2 participants