We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10a8a08 commit 2f732e3Copy full SHA for 2f732e3
src/murfey/client/contexts/spa_metadata.py
@@ -138,9 +138,11 @@ def post_transfer(
138
logger.info(f"Atlas XML path {str(atlas_xml_path)} found")
139
with open(atlas_xml_path, "rb") as atlas_xml:
140
atlas_xml_data = xmltodict.parse(atlas_xml)
141
- atlas_original_pixel_size = atlas_xml_data["MicroscopeImage"][
142
- "SpatialScale"
143
- ]["pixelSize"]["x"]["numericValue"]
+ atlas_original_pixel_size = float(
+ atlas_xml_data["MicroscopeImage"]["SpatialScale"]["pixelSize"]["x"][
+ "numericValue"
144
+ ]
145
+ )
146
147
# need to calculate the pixel size of the downscaled image
148
atlas_pixel_size = atlas_original_pixel_size * 7.8
0 commit comments