Skip to content

Commit

Permalink
fix(api,shared-data): Fix incorrect rejection of `thermocycler/runPro…
Browse files Browse the repository at this point in the history
…file` commands (#11241)
  • Loading branch information
SyntaxColoring authored Jul 27, 2022
1 parent c718356 commit 4366958
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class RunProfileStepParams(BaseModel):
"""Input parameters for an individual Thermocycler profile step."""

celsius: float = Field(..., description="Target temperature in °C.")
holdSeconds: int = Field(
holdSeconds: float = Field(
..., description="Time to hold target temperature at in seconds."
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,39 @@
)
),
),
(
protocol_schema_v6.Command(
commandType="thermocycler/runProfile",
params=protocol_schema_v6.Params(
moduleId="module-id-abc123",
blockMaxVolumeUl=1.11,
profile=[
protocol_schema_v6.ProfileStep(
celsius=2.22,
holdSeconds=3.33,
),
protocol_schema_v6.ProfileStep(
celsius=4.44,
holdSeconds=5.55,
),
],
),
),
pe_commands.thermocycler.RunProfileCreate(
params=pe_commands.thermocycler.RunProfileParams(
moduleId="module-id-abc123",
blockMaxVolumeUl=1.11,
profile=[
pe_commands.thermocycler.RunProfileStepParams(
celsius=2.22, holdSeconds=3.33
),
pe_commands.thermocycler.RunProfileStepParams(
celsius=4.44, holdSeconds=5.55
),
],
),
),
),
]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@ class Location(BaseModel):
moduleId: Optional[str]


# TODO (tamar 3/15/22): split apart all the command payloads when we tackle #9583
class ProfileStep(BaseModel):
celsius: float
holdSeconds: float


class WellLocation(BaseModel):
origin: Optional[str]
offset: Optional[OffsetVector]


# TODO (tamar 3/15/22): split apart all the command payloads when we tackle #9583
class Params(BaseModel):
slotName: Optional[str]
axes: Optional[List[str]]
Expand Down Expand Up @@ -57,6 +62,7 @@ class Params(BaseModel):
rpm: Optional[float]
height: Optional[float]
offset: Optional[OffsetVector]
profile: Optional[List[ProfileStep]]


class Command(BaseModel):
Expand Down

0 comments on commit 4366958

Please sign in to comment.