Skip to content

Commit d5bde26

Browse files
committed
Need to pull out foil hole id before session is closed
1 parent 51fd6ad commit d5bde26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/murfey/workflows/spa/flush_spa_preprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,11 @@ def register_foil_hole(
187187
pixel_size=foil_hole_params.pixel_size,
188188
image=str(secured_foil_hole_image_path),
189189
)
190+
fh_id = foil_hole.id
190191
murfey_db.add(foil_hole)
191192
murfey_db.commit()
192193
murfey_db.close()
193-
return foil_hole.id
194+
return fh_id
194195

195196

196197
def _grid_square_metadata_file(f: Path, grid_square: int) -> Optional[Path]:

0 commit comments

Comments
 (0)