Skip to content

Commit 331a2d2

Browse files
committed
Remove data only present in XML not .dm files
1 parent 2f732e3 commit 331a2d2

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/murfey/client/contexts/spa_metadata.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ def _foil_hole_positions(xml_path: Path, grid_square: int) -> Dict[str, FoilHole
2121
for_parsing = xml.read()
2222
data = xmltodict.parse(for_parsing)
2323
data = data["GridSquareXml"]
24-
readout_area = data["MicroscopeImage"]["microscopeData"]["acquisition"]["camera"][
25-
"ReadoutArea"
26-
]
27-
pixel_size = data["MicroscopeImage"]["SpatialScale"]["pixelSize"]["x"][
28-
"numericValue"
29-
]
30-
full_size = (int(readout_area["a:width"]), int(readout_area["a:height"]))
3124
serialization_array = data["TargetLocations"]["TargetLocationsEfficient"][
3225
"a:m_serializationArray"
3326
]
@@ -58,11 +51,6 @@ def _foil_hole_positions(xml_path: Path, grid_square: int) -> Dict[str, FoilHole
5851
y_location=int(float(pix_loc["c:y"])),
5952
x_stage_position=float(stage["c:X"]),
6053
y_stage_position=float(stage["c:Y"]),
61-
readout_area_x=full_size[0] if image_path else None,
62-
readout_area_y=full_size[1] if image_path else None,
63-
thumbnail_size_x=None,
64-
thumbnail_size_y=None,
65-
pixel_size=float(pixel_size) if image_path else None,
6654
image=str(image_path),
6755
diameter=int(float(diameter)),
6856
)

0 commit comments

Comments
 (0)