Skip to content

Conversation

@robjmcgibbon
Copy link
Collaborator

The autoplotter allows for a lower value to be passed. Currently this removes all datapoints with values smaller than the value of lower. This can lead to incorrect percentiles when calculating medians. This PR instead set the value of lower as a floor value.

Copy link
Collaborator

@EvgeniiChaikin EvgeniiChaikin left a comment

Choose a reason for hiding this comment

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

Thanks @robjmcgibbon !

I have tested these changes; everything works correctly!

One small comment: could you please slightly clarify the description of upper and lower in velociraptor/autoplotter/__init__.py? Something like: The y-values of the mean/median line will be clipped from below at lower and from above at upper

@EvgeniiChaikin
Copy link
Collaborator

Also, ideally, it would be nice to make the pipeline crash on input if lower > upper.

@robjmcgibbon
Copy link
Collaborator Author

Thanks, I've made the suggested changes

@robjmcgibbon robjmcgibbon merged commit d97c196 into master Apr 28, 2025
1 check passed
@robjmcgibbon robjmcgibbon deleted the floor_values branch April 28, 2025 08:31
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.

3 participants