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 #378 #379

Merged
merged 4 commits into from
Oct 5, 2021
Merged

Fix #378 #379

merged 4 commits into from
Oct 5, 2021

Conversation

ocmadin
Copy link
Collaborator

@ocmadin ocmadin commented Sep 15, 2021

Description

Update filtering.py to prevent FilterDuplicates from selecting measurements with no uncertainty value when measurements with uncertainties are available.

Todos

Notable points that this PR has either accomplished or will accomplish.

  • Change na_position default behavior to na_position='first' in pandas.sort_values in FilterDuplicates

Status

  • Ready to go

Update `filtering.py` to prevent `FilterDuplicates` from selecting measurements with no uncertainty value when measurements with uncertainties are available.
Black-compliant function
@ocmadin ocmadin self-assigned this Sep 15, 2021
@SimonBoothroyd SimonBoothroyd changed the title Update filtering.py Fix #378 Sep 30, 2021
Copy link
Contributor

@SimonBoothroyd SimonBoothroyd left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for fixing this! Feel free to merge when ready, the test failures can be ignored for now

@SimonBoothroyd SimonBoothroyd merged commit e26adb8 into master Oct 5, 2021
@SimonBoothroyd SimonBoothroyd deleted the ocmadin-patch-1 branch October 5, 2021 14:21
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.

'FilterDuplicates` unintentionally selects values without uncertainty if multiple are present
2 participants