File tree Expand file tree Collapse file tree 7 files changed +51
-23
lines changed
src/aind_data_schema/core Expand file tree Collapse file tree 7 files changed +51
-23
lines changed Original file line number Diff line number Diff line change 11{
22 "describedBy" : " https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/rig.py" ,
3- "schema_version" : " 1.1.0 " ,
3+ "schema_version" : " 1.1.1 " ,
44 "rig_id" : " 323_EPHYS1_20231003" ,
55 "modification_date" : " 2023-10-03" ,
66 "mouse_platform" : {
Original file line number Diff line number Diff line change 11{
22 "describedBy" : " https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/rig.py" ,
3- "schema_version" : " 1.1.0 " ,
3+ "schema_version" : " 1.1.1 " ,
44 "rig_id" : " 447_FIP-Behavior_20000101" ,
55 "modification_date" : " 2000-01-01" ,
66 "mouse_platform" : {
Original file line number Diff line number Diff line change 11{
22 "describedBy" : " https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/core/rig.py" ,
3- "schema_version" : " 1.1.0 " ,
3+ "schema_version" : " 1.1.1 " ,
44 "rig_id" : " 428_FIP1_20231003" ,
55 "modification_date" : " 2023-10-03" ,
66 "mouse_platform" : {
Original file line number Diff line number Diff line change 5724757247 "type": "string"
5724857248 },
5724957249 "schema_version": {
57250- "const": "1.1.0 ",
57251- "default": "1.1.0 ",
57250+ "const": "1.1.1 ",
57251+ "default": "1.1.1 ",
5725257252 "title": "Schema Version",
5725357253 "type": "string"
5725457254 },
@@ -72359,19 +72359,33 @@
7235972359 "title": "Width unit"
7236072360 },
7236172361 "encoder": {
72362- "$ref": "#/$defs/Device",
72362+ "anyOf": [
72363+ {
72364+ "$ref": "#/$defs/Device"
72365+ },
72366+ {
72367+ "type": "null"
72368+ }
72369+ ],
72370+ "default": null,
7236372371 "title": "Encoder"
7236472372 },
7236572373 "pulse_per_revolution": {
72366- "title": "Pulse per revolution",
72367- "type": "integer"
72374+ "anyOf": [
72375+ {
72376+ "type": "integer"
72377+ },
72378+ {
72379+ "type": "null"
72380+ }
72381+ ],
72382+ "default": null,
72383+ "title": "Pulse per revolution"
7236872384 }
7236972385 },
7237072386 "required": [
7237172387 "name",
72372- "treadmill_width",
72373- "encoder",
72374- "pulse_per_revolution"
72388+ "treadmill_width"
7237572389 ],
7237672390 "title": "Treadmill",
7237772391 "type": "object"
@@ -107170,8 +107184,8 @@
107170107184 "type": "string"
107171107185 },
107172107186 "schema_version": {
107173- "const": "1.2.0 ",
107174- "default": "1.2.0 ",
107187+ "const": "1.2.1 ",
107188+ "default": "1.2.1 ",
107175107189 "title": "Schema Version",
107176107190 "type": "string"
107177107191 },
Original file line number Diff line number Diff line change @@ -12507,19 +12507,33 @@
1250712507 "title": "Width unit"
1250812508 },
1250912509 "encoder": {
12510- "$ref": "#/$defs/Device",
12510+ "anyOf": [
12511+ {
12512+ "$ref": "#/$defs/Device"
12513+ },
12514+ {
12515+ "type": "null"
12516+ }
12517+ ],
12518+ "default": null,
1251112519 "title": "Encoder"
1251212520 },
1251312521 "pulse_per_revolution": {
12514- "title": "Pulse per revolution",
12515- "type": "integer"
12522+ "anyOf": [
12523+ {
12524+ "type": "integer"
12525+ },
12526+ {
12527+ "type": "null"
12528+ }
12529+ ],
12530+ "default": null,
12531+ "title": "Pulse per revolution"
1251612532 }
1251712533 },
1251812534 "required": [
1251912535 "name",
12520- "treadmill_width",
12521- "encoder",
12522- "pulse_per_revolution"
12536+ "treadmill_width"
1252312537 ],
1252412538 "title": "Treadmill",
1252512539 "type": "object"
1878718801 "type": "string"
1878818802 },
1878918803 "schema_version": {
18790- "const": "1.1.0 ",
18791- "default": "1.1.0 ",
18804+ "const": "1.1.1 ",
18805+ "default": "1.1.1 ",
1879218806 "title": "Schema Version",
1879318807 "type": "string"
1879418808 },
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class Metadata(AindCoreModel):
7272
7373 _DESCRIBED_BY_URL = AindCoreModel ._DESCRIBED_BY_BASE_URL .default + "aind_data_schema/core/metadata.py"
7474 describedBy : str = Field (default = _DESCRIBED_BY_URL , json_schema_extra = {"const" : _DESCRIBED_BY_URL })
75- schema_version : SkipValidation [Literal ["1.2.0 " ]] = Field (default = "1.2.0 " )
75+ schema_version : SkipValidation [Literal ["1.2.1 " ]] = Field (default = "1.2.1 " )
7676 id : UUID = Field (
7777 default_factory = uuid4 ,
7878 alias = "_id" ,
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class Rig(AindCoreModel):
5151
5252 _DESCRIBED_BY_URL = AindCoreModel ._DESCRIBED_BY_BASE_URL .default + "aind_data_schema/core/rig.py"
5353 describedBy : str = Field (default = _DESCRIBED_BY_URL , json_schema_extra = {"const" : _DESCRIBED_BY_URL })
54- schema_version : SkipValidation [Literal ["1.1.0 " ]] = Field (default = "1.1.0 " )
54+ schema_version : SkipValidation [Literal ["1.1.1 " ]] = Field (default = "1.1.1 " )
5555 rig_id : str = Field (
5656 ...,
5757 description = "Unique rig identifier, name convention: <room>-<apparatus name>-<date modified YYYYMMDD>" ,
You can’t perform that action at this time.
0 commit comments