Skip to content

Commit 707a91f

Browse files
committed
Variable accidently redefined
1 parent c8d348e commit 707a91f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/murfey/client/contexts/spa_metadata.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ def _foil_hole_positions(xml_path: Path, grid_square: int) -> Dict[str, FoilHole
5151
)
5252
image_paths.sort(key=lambda x: x.stat().st_ctime)
5353
image_path: str = str(image_paths[-1]) if image_paths else ""
54-
stage = fh_block["b:value"]["PixelCenter"]
54+
pix_loc = fh_block["b:value"]["PixelCenter"]
5555
stage = fh_block["b:value"]["StagePosition"]
5656
diameter = fh_block["b:value"]["PixelWidthHeight"]["c:width"]
5757
foil_holes[fh_block["b:key"]] = FoilHole(
5858
id=int(fh_block["b:key"]),
5959
grid_square_id=grid_square,
60-
x_location=int(float(stage["c:x"])),
61-
y_location=int(float(stage["c:y"])),
60+
x_location=int(float(pix_loc["c:x"])),
61+
y_location=int(float(pix_loc["c:y"])),
6262
x_stage_position=float(stage["c:X"]),
6363
y_stage_position=float(stage["c:Y"]),
6464
readout_area_x=full_size[0] if image_path else None,

0 commit comments

Comments
 (0)