Skip to content

Commit ba4f15d

Browse files
author
David Erb
committed
adds row_first_position computation method
1 parent 00006c7 commit ba4f15d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/xchembku_api/models/crystal_well_needing_droplocation_model.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,13 @@ class CrystalWellNeedingDroplocationModel(BaseModel):
4242

4343
is_usable: Optional[bool] = None
4444
is_exported_to_soakdb3: Optional[bool] = None
45+
46+
def row_first_position(self):
47+
# A01a becomes 01Aa for purposes of sorting such that we get all letters in row 01 before any letters in row 02.
48+
# Within the same plate.
49+
return (
50+
self.rockminer_collected_stem
51+
+ self.position[1:3]
52+
+ self.position[0]
53+
+ self.position[-1]
54+
)

0 commit comments

Comments
 (0)