Skip to content

Commit

Permalink
tests: gen examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Jan 22, 2025
1 parent 1850ca6 commit 036dcee
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/aibs_smartspim_instrument.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/instrument.py",
"schema_version": "1.0.5",
"extensions": null,
"instrument_id": "440_SmartSPIM2_20231004",
"modification_date": "2023-10-04",
"instrument_type": "SmartSPIM",
Expand Down
1 change: 1 addition & 0 deletions examples/aibs_smartspim_procedures.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/procedures.py",
"schema_version": "1.2.5",
"extensions": null,
"subject_id": "651286",
"subject_procedures": [
{
Expand Down
1 change: 1 addition & 0 deletions examples/aind_smartspim_instrument.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/instrument.py",
"schema_version": "1.0.5",
"extensions": null,
"instrument_id": "440_SmartSPIM1_20231004",
"modification_date": "2023-10-04",
"instrument_type": "SmartSPIM",
Expand Down
1 change: 1 addition & 0 deletions examples/bergamo_ophys_session.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/session.py",
"schema_version": "1.1.4",
"extensions": null,
"protocol_id": [],
"experimenter_full_name": [
"John Doe"
Expand Down
1 change: 1 addition & 0 deletions examples/data_description.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/data_description.py",
"schema_version": "1.0.4",
"extensions": null,
"license": "CC-BY-4.0",
"platform": {
"name": "Electrophysiology platform",
Expand Down
1 change: 1 addition & 0 deletions examples/ephys_rig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/rig.py",
"schema_version": "1.0.5",
"extensions": null,
"rig_id": "323_EPHYS1_20231003",
"modification_date": "2023-10-03",
"mouse_platform": {
Expand Down
1 change: 1 addition & 0 deletions examples/ephys_session.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/session.py",
"schema_version": "1.1.4",
"extensions": null,
"protocol_id": [],
"experimenter_full_name": [
"Max Quibble",
Expand Down
1 change: 1 addition & 0 deletions examples/exaspim_acquisition.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/acquisition.py",
"schema_version": "1.0.5",
"extensions": null,
"protocol_id": [],
"experimenter_full_name": [
"###"
Expand Down
1 change: 1 addition & 0 deletions examples/exaspim_instrument.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/instrument.py",
"schema_version": "1.0.5",
"extensions": null,
"instrument_id": "440_exaSPIM1-20231004",
"modification_date": "2023-10-04",
"instrument_type": "exaSPIM",
Expand Down
1 change: 1 addition & 0 deletions examples/fip_behavior_rig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/rig.py",
"schema_version": "1.0.5",
"extensions": null,
"rig_id": "447_FIP-Behavior_20000101",
"modification_date": "2000-01-01",
"mouse_platform": {
Expand Down
1 change: 1 addition & 0 deletions examples/fip_ophys_rig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/rig.py",
"schema_version": "1.0.5",
"extensions": null,
"rig_id": "428_FIP1_20231003",
"modification_date": "2023-10-03",
"mouse_platform": {
Expand Down
1 change: 1 addition & 0 deletions examples/mri_session.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/session.py",
"schema_version": "1.1.4",
"extensions": null,
"protocol_id": [
"dx.doi.org/10.57824/protocols.io.bh7kl4n6"
],
Expand Down
1 change: 1 addition & 0 deletions examples/multiplane_ophys_session.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/session.py",
"schema_version": "1.1.4",
"extensions": null,
"protocol_id": [],
"experimenter_full_name": [
"John Doe"
Expand Down
1 change: 1 addition & 0 deletions examples/ophys_procedures.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/procedures.py",
"schema_version": "1.2.5",
"extensions": null,
"subject_id": "625100",
"subject_procedures": [
{
Expand Down
1 change: 1 addition & 0 deletions examples/ophys_session.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/session.py",
"schema_version": "1.1.4",
"extensions": null,
"protocol_id": [],
"experimenter_full_name": [
"John Doe"
Expand Down
1 change: 1 addition & 0 deletions examples/procedures.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/procedures.py",
"schema_version": "1.2.5",
"extensions": null,
"subject_id": "625100",
"subject_procedures": [
{
Expand Down
1 change: 1 addition & 0 deletions examples/processing.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/processing.py",
"schema_version": "1.1.5",
"extensions": null,
"processing_pipeline": {
"data_processes": [
{
Expand Down
1 change: 1 addition & 0 deletions examples/quality_control.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/quality_control.py",
"schema_version": "1.2.2",
"extensions": null,
"evaluations": [
{
"modality": {
Expand Down
1 change: 1 addition & 0 deletions examples/subject.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/subject.py",
"schema_version": "1.0.3",
"extensions": null,
"subject_id": "12345",
"sex": "Male",
"date_of_birth": "2022-11-22",
Expand Down
2 changes: 2 additions & 0 deletions src/aind_data_schema/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ class DataCoreModel(DataModel):
schema_version: str = Field(
..., pattern=r"^\d+.\d+.\d+$", description="schema version", title="Version", frozen=True
)

extensions: Optional[GenericModelType] = Field(default=None, title="Extensions")

@field_validator("schema_version", mode="before")
@classmethod
Expand Down

0 comments on commit 036dcee

Please sign in to comment.