-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1072 qc automate state properties in qualitycontrol and evaluation ba…
…sed on metric states (#1074) * refactor: changing references -> reference * feat: add an overall evaluator name * feat: adding QCStatus and lists of status for versioning * chore: lint * tests: updating tests for QCStatus * feat: add QCStatus list to metrics * feat: adding a function to automate setting the evaluation_status field Coverage not at 100% yet Also replaced date with datetime in QCStatus * test: test coverage for overall_status * test: add coverage for properties * refactor: date -> datetime * chore: lint * doc: missing docstrings * tests: remove unnecessary test * feat: auto-set status when never previously evaluated, and tests * fix: fixing an issue with private attributes You can't do what I wanted (hide the _evaluation_status list) because pydantic doesn't serialize the field. So we have to keep the history exposed but we'll have to encourage people not to access it directly * chore: example and lint * fix: removing default_factory, trying to allow timestamp pass through * test: fixing examples test timestamp issue * chore: lint * refactor: datetime -> AwareDatetime and remove default * tests: add a test that confirms that order is preserved * fix: missing timezones for example * feat: add option to allow failures in metrics * feat: add a convenience function to get metrics that are failing * tests: update qc.json example * feat: ensure metric_status_history not empty with validator * chore: docstring * test: improving examples * chore: lint * feat: add asset_id field to qc * tests: fix examples * tests: fix examples * docs: extended desc for allowing failed metrics * feat: removing prefixes to clean up fields * feat: remove property prefixes * chore: lint * chore/tests: lint and fix examples * tests: fix refactor issues in tests * docs: fix typo * chore: unused import snuck in? * fix: allow none to return from failed_metrics * ci: fix for python 3.8 failures * fix: remove the confusing "Automated" evaluator * tests: fix qc example * refactor: removing redundant status_history from QualityControl and QCEvaluation * fix: forgot to remove redundant fields * tests: fix examples
- Loading branch information
Showing
5 changed files
with
620 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.