Skip to content

Commit

Permalink
WIP: adjustments for bluesky and event_model
Browse files Browse the repository at this point in the history
  • Loading branch information
evalott100 committed Jan 13, 2025
1 parent 2d5aa8f commit 0d9eaf8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/event_model/basemodels/event_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class Limits(BaseModel):
class DataKey(BaseModel):
"""Describes the objects in the data property of Event documents"""

model_config = ConfigDict(extra="forbid")
model_config = ConfigDict(extra="allow")

limits: Annotated[
Limits,
Expand Down Expand Up @@ -201,7 +201,7 @@ class DataKey(BaseModel):
class PerObjectHint(BaseModel):
"""The 'interesting' data keys for this device."""

model_config = ConfigDict(extra="forbid")
model_config = ConfigDict(extra="allow")

fields: Annotated[
List[str],
Expand All @@ -218,7 +218,7 @@ class PerObjectHint(BaseModel):


class Configuration(BaseModel):
model_config = ConfigDict(extra="forbid")
model_config = ConfigDict(extra="allow")
data: Annotated[
Dict[str, Any],
Field(default={}, description="The actual measurement data"),
Expand Down
4 changes: 2 additions & 2 deletions src/event_model/basemodels/run_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def validate_root(cls, value):
class Hints(BaseModel):
"""Start-level hints"""

model_config = ConfigDict(extra="forbid")
model_config = ConfigDict(extra="allow")

dimensions: Annotated[
List[List[Union[List[str], str]]],
Expand All @@ -48,7 +48,7 @@ class Hints(BaseModel):


class Calculation(BaseModel):
model_config = ConfigDict(extra="forbid")
model_config = ConfigDict(extra="allow")

args: Annotated[List, Field(default=[])]
callable: Annotated[
Expand Down
6 changes: 3 additions & 3 deletions src/event_model/schemas/event_descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"default": {}
}
},
"additionalProperties": false
"additionalProperties": true
},
"DataKey": {
"title": "DataKey",
Expand Down Expand Up @@ -143,7 +143,7 @@
"shape",
"source"
],
"additionalProperties": false
"additionalProperties": true
},
"DataType": {
"title": "DataType",
Expand Down Expand Up @@ -301,7 +301,7 @@
}
}
},
"additionalProperties": false
"additionalProperties": true
},
"RdsRange": {
"title": "RdsRange",
Expand Down
4 changes: 2 additions & 2 deletions src/event_model/schemas/run_start.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"required": [
"callable"
],
"additionalProperties": false
"additionalProperties": true
},
"ConfigurationProjection": {
"title": "ConfigurationProjection",
Expand Down Expand Up @@ -148,7 +148,7 @@
}
}
},
"additionalProperties": false
"additionalProperties": true
},
"LinkedEventProjection": {
"title": "LinkedEventProjection",
Expand Down

0 comments on commit 0d9eaf8

Please sign in to comment.