Skip to content

Commit

Permalink
chore: bump version numbers and re-generate examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Jan 27, 2025
1 parent 7602294 commit f0bb384
Show file tree
Hide file tree
Showing 31 changed files with 33 additions and 32 deletions.
2 changes: 1 addition & 1 deletion examples/aibs_smartspim_instrument.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/inst.py",
"schema_version": "1.0.5",
"schema_version": "2.0.0",
"instrument_id": "440_SmartSPIM2_20231004",
"mouse_platform": null,
"modification_date": "2023-10-04",
Expand Down
2 changes: 1 addition & 1 deletion examples/aibs_smartspim_procedures.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/procedures.py",
"schema_version": "1.2.6",
"schema_version": "2.0.0",
"subject_id": "651286",
"subject_procedures": [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/aind_smartspim_instrument.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/inst.py",
"schema_version": "1.0.5",
"schema_version": "2.0.0",
"instrument_id": "440_SmartSPIM1_20231004",
"mouse_platform": null,
"modification_date": "2023-10-04",
Expand Down
2 changes: 1 addition & 1 deletion examples/bergamo_ophys_session.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/session.py",
"schema_version": "1.1.5",
"schema_version": "2.0.0",
"protocol_id": [],
"experimenters": [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/data_description.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/data_description.py",
"schema_version": "1.0.5",
"schema_version": "2.0.0",
"license": "CC-BY-4.0",
"subject_id": "12345",
"creation_time": "2022-02-21T16:30:01Z",
Expand Down
2 changes: 1 addition & 1 deletion examples/ephys_instrument.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/inst.py",
"schema_version": "1.0.5",
"schema_version": "2.0.0",
"instrument_id": "323_EPHYS1_20231003",
"mouse_platform": {
"device_type": "Disc",
Expand Down
2 changes: 1 addition & 1 deletion examples/ephys_session.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/session.py",
"schema_version": "1.1.5",
"schema_version": "2.0.0",
"protocol_id": [],
"experimenters": [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/exaspim_acquisition.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/acquisition.py",
"schema_version": "1.0.6",
"schema_version": "2.0.0",
"protocol_id": [],
"experimenters": [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/exaspim_instrument.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/inst.py",
"schema_version": "1.0.5",
"schema_version": "2.0.0",
"instrument_id": "440_exaSPIM1_20231004",
"mouse_platform": null,
"modification_date": "2023-10-04",
Expand Down
2 changes: 1 addition & 1 deletion examples/fip_behavior_instrument.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/inst.py",
"schema_version": "1.0.5",
"schema_version": "2.0.0",
"instrument_id": "447_FIP-Behavior_20000101",
"mouse_platform": {
"device_type": "Tube",
Expand Down
2 changes: 1 addition & 1 deletion examples/fip_ophys_instrument.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/inst.py",
"schema_version": "1.0.5",
"schema_version": "2.0.0",
"instrument_id": "428_FIP1_20231003",
"mouse_platform": {
"device_type": "Disc",
Expand Down
2 changes: 1 addition & 1 deletion examples/mri_session.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/session.py",
"schema_version": "1.1.5",
"schema_version": "2.0.0",
"protocol_id": [
"dx.doi.org/10.57824/protocols.io.bh7kl4n6"
],
Expand Down
2 changes: 1 addition & 1 deletion examples/multiplane_ophys_session.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/session.py",
"schema_version": "1.1.5",
"schema_version": "2.0.0",
"protocol_id": [],
"experimenters": [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/ophys_procedures.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/procedures.py",
"schema_version": "1.2.6",
"schema_version": "2.0.0",
"subject_id": "625100",
"subject_procedures": [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/ophys_session.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/session.py",
"schema_version": "1.1.5",
"schema_version": "2.0.0",
"protocol_id": [],
"experimenters": [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/procedures.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/procedures.py",
"schema_version": "1.2.6",
"schema_version": "2.0.0",
"subject_id": "625100",
"subject_procedures": [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/processing.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/processing.py",
"schema_version": "1.1.6",
"schema_version": "2.0.0",
"processing_pipeline": {
"data_processes": [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/quality_control.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/quality_control.py",
"schema_version": "1.2.2",
"schema_version": "2.0.0",
"evaluations": [
{
"modality": {
Expand Down
2 changes: 1 addition & 1 deletion examples/subject.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/subject.py",
"schema_version": "1.0.3",
"schema_version": "2.0.0",
"subject_id": "12345",
"sex": "Male",
"date_of_birth": "2022-11-22",
Expand Down
2 changes: 1 addition & 1 deletion src/aind_data_schema/core/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Acquisition(DataCoreModel):

_DESCRIBED_BY_URL = DataCoreModel._DESCRIBED_BY_BASE_URL.default + "aind_data_schema/core/acquisition.py"
describedBy: str = Field(default=_DESCRIBED_BY_URL, json_schema_extra={"const": _DESCRIBED_BY_URL})
schema_version: SkipValidation[Literal["1.0.6"]] = Field(default="1.0.6")
schema_version: SkipValidation[Literal["2.0.0"]] = Field(default="2.0.0")
protocol_id: List[str] = Field(default=[], title="Protocol ID", description="DOI for protocols.io")
experimenters: List[Person] = Field(
default=[],
Expand Down
2 changes: 1 addition & 1 deletion src/aind_data_schema/core/data_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class DataDescription(DataCoreModel):

_DESCRIBED_BY_URL = DataCoreModel._DESCRIBED_BY_BASE_URL.default + "aind_data_schema/core/data_description.py"
describedBy: str = Field(default=_DESCRIBED_BY_URL, json_schema_extra={"const": _DESCRIBED_BY_URL})
schema_version: SkipValidation[Literal["1.0.5"]] = Field(default="1.0.5")
schema_version: SkipValidation[Literal["2.0.0"]] = Field(default="2.0.0")
license: Literal["CC-BY-4.0"] = Field(default="CC-BY-4.0", title="License")

subject_id: str = Field(
Expand Down
2 changes: 1 addition & 1 deletion src/aind_data_schema/core/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class Instrument(DataCoreModel):
# metametadata
_DESCRIBED_BY_URL = DataCoreModel._DESCRIBED_BY_BASE_URL.default + "aind_data_schema/core/inst.py"
describedBy: str = Field(default=_DESCRIBED_BY_URL, json_schema_extra={"const": _DESCRIBED_BY_URL})
schema_version: SkipValidation[Literal["1.0.5"]] = Field(default="1.0.5")
schema_version: SkipValidation[Literal["2.0.0"]] = Field(default="2.0.0")

# instrument definition
instrument_id: str = Field(
Expand Down
2 changes: 1 addition & 1 deletion src/aind_data_schema/core/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Metadata(DataCoreModel):

_DESCRIBED_BY_URL = DataCoreModel._DESCRIBED_BY_BASE_URL.default + "aind_data_schema/core/metadata.py"
describedBy: str = Field(default=_DESCRIBED_BY_URL, json_schema_extra={"const": _DESCRIBED_BY_URL})
schema_version: SkipValidation[Literal["1.1.7"]] = Field(default="1.1.7")
schema_version: SkipValidation[Literal["2.0.0"]] = Field(default="2.0.0")
id: UUID = Field(
default_factory=uuid4,
alias="_id",
Expand Down
2 changes: 1 addition & 1 deletion src/aind_data_schema/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Model(DataCoreModel):

_DESCRIBED_BY_URL = DataCoreModel._DESCRIBED_BY_BASE_URL.default + "aind_data_schema/core/model.py"
describedBy: str = Field(default=_DESCRIBED_BY_URL, json_schema_extra={"const": _DESCRIBED_BY_URL})
schema_version: Literal["0.0.1"] = Field(default="0.0.1")
schema_version: Literal["2.0.0"] = Field(default="2.0.0")

name: str = Field(..., title="Name")
license: str = Field(..., title="License")
Expand Down
2 changes: 1 addition & 1 deletion src/aind_data_schema/core/procedures.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ class Procedures(DataCoreModel):
_DESCRIBED_BY_URL = DataCoreModel._DESCRIBED_BY_BASE_URL.default + "aind_data_schema/core/procedures.py"
describedBy: str = Field(default=_DESCRIBED_BY_URL, json_schema_extra={"const": _DESCRIBED_BY_URL})

schema_version: SkipValidation[Literal["1.2.6"]] = Field(default="1.2.6")
schema_version: SkipValidation[Literal["2.0.0"]] = Field(default="2.0.0")
subject_id: str = Field(
...,
description="Unique identifier for the subject. If this is not a Allen LAS ID, indicate this in the Notes.",
Expand Down
2 changes: 1 addition & 1 deletion src/aind_data_schema/core/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class Processing(DataCoreModel):

_DESCRIBED_BY_URL: str = DataCoreModel._DESCRIBED_BY_BASE_URL.default + "aind_data_schema/core/processing.py"
describedBy: str = Field(default=_DESCRIBED_BY_URL, json_schema_extra={"const": _DESCRIBED_BY_URL})
schema_version: SkipValidation[Literal["1.1.6"]] = Field(default="1.1.6")
schema_version: SkipValidation[Literal["2.0.0"]] = Field(default="2.0.0")

processing_pipeline: PipelineProcess = Field(
..., description="Pipeline used to process data", title="Processing Pipeline"
Expand Down
2 changes: 1 addition & 1 deletion src/aind_data_schema/core/quality_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class QualityControl(DataCoreModel):

_DESCRIBED_BY_URL = DataCoreModel._DESCRIBED_BY_BASE_URL.default + "aind_data_schema/core/quality_control.py"
describedBy: str = Field(default=_DESCRIBED_BY_URL, json_schema_extra={"const": _DESCRIBED_BY_URL})
schema_version: SkipValidation[Literal["1.2.2"]] = Field(default="1.2.2")
schema_version: SkipValidation[Literal["2.0.0"]] = Field(default="2.0.0")
evaluations: List[QCEvaluation] = Field(..., title="Evaluations")
notes: Optional[str] = Field(default=None, title="Notes")

Expand Down
2 changes: 1 addition & 1 deletion src/aind_data_schema/core/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ class Session(DataCoreModel):

_DESCRIBED_BY_URL = DataCoreModel._DESCRIBED_BY_BASE_URL.default + "aind_data_schema/core/session.py"
describedBy: str = Field(default=_DESCRIBED_BY_URL, json_schema_extra={"const": _DESCRIBED_BY_URL})
schema_version: SkipValidation[Literal["1.1.5"]] = Field(default="1.1.5")
schema_version: SkipValidation[Literal["2.0.0"]] = Field(default="2.0.0")
protocol_id: List[str] = Field(default=[], title="Protocol ID", description="DOI for protocols.io")
experimenters: List[Person] = Field(
default=[],
Expand Down
2 changes: 1 addition & 1 deletion src/aind_data_schema/core/subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Subject(DataCoreModel):

_DESCRIBED_BY_URL = DataCoreModel._DESCRIBED_BY_BASE_URL.default + "aind_data_schema/core/subject.py"
describedBy: str = Field(default=_DESCRIBED_BY_URL, json_schema_extra={"const": _DESCRIBED_BY_URL})
schema_version: SkipValidation[Literal["1.0.3"]] = Field(default="1.0.3")
schema_version: SkipValidation[Literal["2.0.0"]] = Field(default="2.0.0")
subject_id: str = Field(
...,
description="Unique identifier for the subject. If this is not a Allen LAS ID, indicate this in the Notes.",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_inst_acq_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
behavior_computer = "W10DT72941"
ephys_computer = "W10DT72942"

running_wheel = Disc(name="Running Wheel", radius=15)
disc_mouse_platform = Disc(name="Running Wheel", radius=15)

digital_out0 = DAQChannel(channel_name="DO0", device_name="Face Camera", channel_type="Digital Output")

Expand Down Expand Up @@ -246,8 +246,8 @@
basestation,
harp,
microscope,
running_wheel,
],
mouse_platform=disc_mouse_platform,
calibrations=[red_laser_calibration, blue_laser_calibration],
)

Expand Down
3 changes: 2 additions & 1 deletion tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,12 @@ def test_validate_smartspim_metadata(self):
surgery2 = Surgery.model_construct(procedures=[nano_inj])
with self.assertRaises(ValidationError) as context:
Metadata(
name="ecephys_655019_2023-04-03_18-17-09",
name="655019_2023-04-03T181709",
location="bucket",
data_description=DataDescription.model_construct(
creation_time=time(12, 12, 12),
modalities=[Modality.SPIM],
subject_id="655019",
),
subject=Subject.model_construct(),
procedures=Procedures.model_construct(subject_procedures=[surgery2]),
Expand Down

0 comments on commit f0bb384

Please sign in to comment.