Skip to content

Commit

Permalink
tests: fixing broken quality_control example + tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Aug 27, 2024
1 parent 443a660 commit f432f84
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
44 changes: 33 additions & 11 deletions examples/quality_control.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/quality_metrics.py",
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/quality_control.py",
"schema_version": "1.0.0",
"overall_status": "Pass",
"overall_status_date": "2022-11-22",
Expand All @@ -12,11 +12,18 @@
"evaluation_stage": "Data acquisition",
"evaluator_full_name": "Fred Flinstone",
"evaluation_date": "2022-11-22",
"qc_metrics": {
"Video_1_num_frames": 662,
"Video_2_num_frames": 662,
"Frame_match": true
},
"qc_metrics": [
{
"name": "Video_frame_match",
"value": {
"Video_1_num_frames": 662,
"Video_2_num_frames": 662,
"Frame_match": true
},
"description": null,
"references": null
}
],
"stage_status": "Pass",
"notes": null
},
Expand All @@ -28,11 +35,26 @@
"evaluation_stage": "Data acquisition",
"evaluator_full_name": "Fred Flinstone",
"evaluation_date": "2022-11-22",
"qc_metrics": {
"ProbeA_success": true,
"ProbeB_success": true,
"ProbeC_success": false
},
"qc_metrics": [
{
"name": "ProbeA_success",
"value": true,
"description": null,
"references": null
},
{
"name": "ProbeB_success",
"value": true,
"description": null,
"references": null
},
{
"name": "ProbeC_success",
"value": true,
"description": null,
"references": null
}
],
"stage_status": "Pass",
"notes": null
}
Expand Down
3 changes: 2 additions & 1 deletion tests/test_quality_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ def test_constructors(self):
evaluation_stage="Spike sorting",
qc_metrics=[
QCMetric(
name="Multiple values example",
value={"stuff": "in_a_dict"}
),
QCMetric(
name="Drift map pass/fail",
value=False,
description="Manual evaluation of whether the drift map looks good",
references="s3://some-data-somewhere"
references=["s3://some-data-somewhere"]
)
],
stage_status="Pass",
Expand Down

0 comments on commit f432f84

Please sign in to comment.