Skip to content

FPM-904 - Modifications to flatline QC check#60

Merged
richjam merged 2 commits intomainfrom
feature/FPM-904-flatline-test-modifications
Mar 18, 2026
Merged

FPM-904 - Modifications to flatline QC check#60
richjam merged 2 commits intomainfrom
feature/FPM-904-flatline-test-modifications

Conversation

@richjam
Copy link
Copy Markdown
Collaborator

@richjam richjam commented Mar 12, 2026

FlatLineCheck

  • Renamed threshold to min_count - thought it is a bit more understandable what the variable is for
  • Added a tolerance parameters - this let's users give a buffer around the values that it's checking for repeats from
  • Add type validation for ignore_value - values are now cast to the column dtype before comparison, with a clear TypeError if incompatible. Example of [0, 3.1] should now work as the integer "0" can be cast safely to float.

Docs

  • Modified QC page to separate QC check examples into distinct headers to help separate them out a bit
  • Added flatline check docs, with examples of using ignore_value and threshold

@richjam richjam requested a review from simonstanley March 12, 2026 09:53
Copy link
Copy Markdown
Contributor

@simonstanley simonstanley left a comment

Choose a reason for hiding this comment

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

All looks good. Did you want to add tests in there for string data?

@richjam
Copy link
Copy Markdown
Collaborator Author

richjam commented Mar 17, 2026

All looks good. Did you want to add tests in there for string data?

Sure

@richjam richjam requested a review from simonstanley March 18, 2026 08:52
@richjam richjam merged commit cb4a433 into main Mar 18, 2026
3 checks passed
@richjam richjam deleted the feature/FPM-904-flatline-test-modifications branch March 18, 2026 09:07
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.

2 participants