Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed May 29, 2024
1 parent dd9f5e8 commit cf45742
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 7 additions & 2 deletions robot-server/robot_server/modules/module_data_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,13 @@ def map_data(
module_cls = AbsorbanceReaderModule
module_data = AbsorbanceReaderModuleData(
status=AbsorbanceReaderStatus(live_data["status"]),
lidStatus=cast(AbsorbanceReaderLidStatus, live_data["data"].get("lidStatus")),
platePresence=cast(AbsorbanceReaderPlatePresence, live_data["data"].get("platePresence")),
lidStatus=cast(
AbsorbanceReaderLidStatus, live_data["data"].get("lidStatus")
),
platePresence=cast(
AbsorbanceReaderPlatePresence,
live_data["data"].get("platePresence"),
),
sampleWavelength=cast(int, live_data["data"].get("sampleWavelength")),
)
else:
Expand Down
2 changes: 0 additions & 2 deletions robot-server/robot_server/modules/module_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ class AbsorbanceReaderModuleData(BaseModel):
)



class AbsorbanceReaderModule(
_GenericModule[
Literal[ModuleType.ABSORBANCE_READER],
Expand All @@ -344,7 +343,6 @@ class AbsorbanceReaderModule(
data: AbsorbanceReaderModuleData



AttachedModule = Union[
TemperatureModule,
MagneticModule,
Expand Down

0 comments on commit cf45742

Please sign in to comment.