File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
src/murfey/client/contexts Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 44
55import requests
66import xmltodict
7- from PIL import Image
87
98from murfey .client .context import Context
109from murfey .client .contexts .spa import _get_grid_square_atlas_positions , _get_source
@@ -85,17 +84,9 @@ def post_transfer(
8584 atlas_original_pixel_size = atlas_xml_data ["MicroscopeImage" ][
8685 "SpatialScale"
8786 ]["pixelSize" ]["x" ]["numericValue" ]
88- readout_width = float (
89- atlas_xml_data ["MicroscopeImage" ]["SpatialScale" ]["pixelSize" ]["x" ][
90- "numericValue"
91- ]
92- )
9387
9488 # need to calculate the pixel size of the downscaled image
95- atlas_im = Image .open (atlas_xml_path .with_suffix (".jpg" ))
96- atlas_pixel_size = atlas_original_pixel_size * (
97- readout_width / atlas_im .width
98- )
89+ atlas_pixel_size = atlas_original_pixel_size * 7.8
9990
10091 source = _get_source (
10192 visitless_path .parent / "Images-Disc1" / visitless_path .name ,
You can’t perform that action at this time.
0 commit comments