-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add return_edges argument to DataSet.assign_resolution_bins() #187
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have suggested a slight refactor. I haven't gone over the tests very carefully yet. I want to wait for your feedback on my suggestion.
I made the requested refactors to |
Codecov ReportBase: 98.37% // Head: 98.35% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #187 +/- ##
==========================================
- Coverage 98.37% 98.35% -0.03%
==========================================
Files 45 44 -1
Lines 1788 1764 -24
==========================================
- Hits 1759 1735 -24
Misses 29 29
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@kmdalton I think this is good to go now, but let me know if you have any other thoughts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think assign_resolution_bins
should take an array of bin edges. i think refls that fall outside the bin range should probably get dropped by default, but i am open to suggestions.
This is different than the current behavior in I hesitate to auto-drop reflections from the DataSet, but I think that could be acceptable as long we add a corresponding remark in the docstring |
I updated this PR to allow
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me. great stuff!
Fixes #184 by adding a
return_edges
argument toDataSet.assign_resolution_bins()
. This PR adds that flexibility to the API, but otherwise does not change the default behavior of the function to preserve backwards compatibility.