Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
camisowers committed Aug 16, 2023
1 parent 2f7f72e commit 53934f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/toffy/image_stitching.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def fix_image_resolutions(resolution_data, extraction_dir):

# loop through problematic fovs
for fov in res_change.fov:
fov_res = res_change[res_change.fov == fov]["pixels / 400 microns"]
fov_res = res_change[res_change.fov == fov]["pixels / 400 microns"].values
scale = correct_res / fov_res

tiff_data = load_utils.load_imgs_from_tree(extraction_dir, fovs=[fov])
Expand Down
4 changes: 2 additions & 2 deletions templates/3f_check_resolutions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"source": [
"import os\n",
"from toffy.json_utils import check_fov_resolutions\n",
"from image_stitching import fix_image_resolutions"
"from toffy.image_stitching import fix_image_resolutions"
]
},
{
Expand Down Expand Up @@ -89,7 +89,7 @@
"outputs": [],
"source": [
"# change image size for any FOVs with inconsistent resolutions\n",
"fix_image_resolutions(resolution_data)"
"fix_image_resolutions(resolution_data, extraction_dir)"
]
}
],
Expand Down

0 comments on commit 53934f0

Please sign in to comment.