Skip to content

Commit 79abfb8

Browse files
author
David Erb
committed
fixes error using plate stem
1 parent 7a69f6d commit 79abfb8

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/echolocator_lib/guis/aiohttp.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -624,24 +624,12 @@ async def __export_to_soakdb3_visit(
624624
crystal_well_models: List[CrystalWellNeedingDroplocationModel],
625625
) -> None:
626626

627-
# Fetch the plate record for visit.
628-
crystal_plate_filter = CrystalPlateFilterModel(visit=visit)
629-
crystal_plate_models = await self.__xchembku.fetch_crystal_plates(
630-
crystal_plate_filter
631-
)
632-
633-
if len(crystal_plate_models) == 0:
634-
raise RuntimeError(
635-
f'database integrity error: no crystal plate for visit "{visit}"'
636-
)
637-
crystal_plate_model = crystal_plate_models[0]
638-
639627
soakdb3_crystal_well_models = []
640628
for m in crystal_well_models:
641629
soakdb3_crystal_well_models.append(
642630
Soakdb3CrystalWellModel(
643631
LabVisit=visit,
644-
CrystalPlate=crystal_plate_model.rockminer_collected_stem,
632+
CrystalPlate=m.rockminer_collected_stem,
645633
CrystalWell=m.position,
646634
EchoX=m.confirmed_microns_x,
647635
EchoY=m.confirmed_microns_y,

0 commit comments

Comments
 (0)