Skip to content

Commit

Permalink
adds row_first_position computation method
Browse files Browse the repository at this point in the history
  • Loading branch information
David Erb committed Jun 16, 2023
1 parent 00006c7 commit ba4f15d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/xchembku_api/models/crystal_well_needing_droplocation_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,13 @@ class CrystalWellNeedingDroplocationModel(BaseModel):

is_usable: Optional[bool] = None
is_exported_to_soakdb3: Optional[bool] = None

def row_first_position(self):
# A01a becomes 01Aa for purposes of sorting such that we get all letters in row 01 before any letters in row 02.
# Within the same plate.
return (
self.rockminer_collected_stem
+ self.position[1:3]
+ self.position[0]
+ self.position[-1]
)

0 comments on commit ba4f15d

Please sign in to comment.