-
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.
- Loading branch information
Showing
2 changed files
with
83 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/quality_metrics.py", | ||
"schema_version": "0.0.1", | ||
"overall_status": "Pass", | ||
"overall_status_date": "2022-11-22", | ||
"evaluations": [ | ||
{ | ||
"evaluation_modality": { | ||
"name": "Behavior videos", | ||
"abbreviation": "behavior-videos" | ||
}, | ||
"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 | ||
}, | ||
"stage_status": "Pass", | ||
"notes": null | ||
}, | ||
{ | ||
"evaluation_modality": { | ||
"name": "Extracellular electrophysiology", | ||
"abbreviation": "ecephys" | ||
}, | ||
"evaluation_stage": "Data acqusition", | ||
"evaluator_full_name": "Fred Flinstone", | ||
"evaluation_date": "2022-11-22", | ||
"qc_metrics": { | ||
"ProbeA_success": true, | ||
"ProbeB_success": true, | ||
"ProbeC_success": false | ||
}, | ||
"stage_status": "Pass", | ||
"notes": null | ||
} | ||
], | ||
"notes": null | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
from datetime import date | ||
|
||
from aind_data_schema_models.modalities import Modality | ||
|
||
from aind_data_schema.core.quality_control import QualityControl, QCEvaluation | ||
|
||
t = date(2022, 11, 22) | ||
|
||
q = QualityControl( | ||
overall_status="Pass", | ||
overall_status_date = t, | ||
evaluations = [ | ||
QCEvaluation( | ||
evaluation_modality=Modality.BEHAVIOR_VIDEOS, | ||
evaluation_stage="Data acquisition", | ||
evaluator_full_name="Fred Flinstone", | ||
evaluation_date=t, | ||
qc_metrics={ | ||
"Video_1_num_frames": 662, | ||
"Video_2_num_frames": 662, | ||
"Frame_match": True, | ||
}, | ||
stage_status="Pass", | ||
), | ||
QCEvaluation( | ||
evaluation_modality=Modality.ECEPHYS, | ||
evaluation_stage="Data acqusition", | ||
evaluator_full_name="Fred Flinstone", | ||
evaluation_date=t, | ||
qc_metrics={ | ||
"ProbeA_success": True, | ||
"ProbeB_success": True, | ||
"ProbeC_success": False, | ||
}, | ||
stage_status="Pass", | ||
) | ||
] | ||
) | ||
|
||
serialized = q.model_dump_json() | ||
deserialized = QualityControl.model_validate_json(serialized) | ||
q.write_standard_file() |