Skip to content

Commit

Permalink
feat: add LightAssembly class
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Jan 16, 2025
1 parent 4fa9607 commit 7900187
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/aind_data_schema/components/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,17 @@ class Lamp(Device):
temperature_unit: Optional[TemperatureUnit] = Field(default=None, title="Temperature unit")


class LightAssembly(DataModel):
"""Named assembly of a light source and lens"""

device_type: Literal["Light assembly"] = "Light assembly"

# required fields
name: str = Field(..., title="Light assembly name")
light: Annotated[Union[Laser, LightEmittingDiode, Lamp], Field(discriminator="device_type")]
lens: Lens = Field(..., title="Lens")


class ProbePort(DataModel):
"""Port for a probe connection"""

Expand Down

0 comments on commit 7900187

Please sign in to comment.