Skip to content

Commit

Permalink
fix for newer scikit-image version
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenBransen committed Nov 30, 2023
1 parent 85cf3d5 commit a377e99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scm_confocal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.7.3'
__version__ = '1.7.4'

from .sp8 import sp8_lif,sp8_image,sp8_series
from .visitech import visitech_series,visitech_faststack
Expand Down
6 changes: 2 additions & 4 deletions scm_confocal/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,11 @@ def align_stack(images,startim=0,threshold=0,binning=1,smooth=0,upsample=1,
#start going backwards from startim to first image
for i in reversed(range(0,startim)):
print('\raligning image {:>{w}} of {:>{w}}'.format(i,n-1,w=len(str(n-1))),end='')
shifts = phase_cross_correlation(
shifts,*_ = phase_cross_correlation(
alignim[i+1],
alignim[i],
upsample_factor=upsample,
normalization=None,
return_error=False
)
imshift[i] = imshift[i+1] + [binning*s for s in shifts]
if apply_shift and trim != 'full':
Expand All @@ -137,12 +136,11 @@ def align_stack(images,startim=0,threshold=0,binning=1,smooth=0,upsample=1,
#then continue from startim to end
for i in range(startim+1,n):
print('\raligning image {:>{w}} of {:>{w}}'.format(i,n-1,w=len(str(n-1))),end='')
shifts = phase_cross_correlation(
shifts,*_ = phase_cross_correlation(
alignim[i-1],
alignim[i],
upsample_factor=upsample,
normalization=None,
return_error=False
)
imshift[i] = imshift[i-1] + [binning*s for s in shifts]
if apply_shift and trim != 'full':
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="scm_confocal",
version="1.7.3",
version="1.7.4",
author="Maarten Bransen",
author_email="[email protected]",
license='GNU General Public License v3.0',
Expand Down

0 comments on commit a377e99

Please sign in to comment.