bewersdorflab / cross-correlation-drift-correction

PYME module for cross correlation-based drift correction with support for both image and localization data.
1 stars 3 forks source link

default RCCDriftCorrection settings fail #4

Closed barentine closed 5 years ago

barentine commented 5 years ago

When adding Locs_RCC to a VisGUI pipeline with the default settings: ` Traceback (most recent call last): File "/home/gs519/code/python-microscopy/PYME/recipes/recipeGui.py", line 369, in OnAddModule self.recipes.activeRecipe.invalidate_data() File "/home/gs519/code/python-microscopy/PYME/recipes/base.py", line 323, in invalidate_data self.execute() File "/home/gs519/code/python-microscopy/PYME/recipes/base.py", line 452, in execute m.execute(self.namespace) File "/home/gs519/code/cross-correlation-drift-correction/cc_drift_cor/plugins/recipes/localisations.py", line 192, in execute drift_res = self.calc_corr_drift_from_locs(locs['x'], locs['y'], locs['z'] * (0 if self.flatten_z else 1), locs['t']) File "/home/gs519/code/cross-correlation-drift-correction/cc_drift_cor/plugins/recipes/localisations.py", line 155, in calc_corr_drift_from_locs ft_images[i] = calc_fft_from_locs(xyz[:,t_slice].T, bxyz, self.tukey_size) File "/home/gs519/code/cross-correlation-drift-correction/cc_drift_cor/plugins/recipes/localisations.py", line 45, in calc_fft_from_locs return calc_fft_from_image(im, cache_fft) File "/home/gs519/code/cross-correlation-drift-correction/cc_drift_cor/plugins/recipes/processing.py", line 615, in calc_fft_from_image if not cache_fft is None and cache_fft[0] != "": TypeError: 'float' object has no attribute 'getitem'

`

kkhchung commented 5 years ago

Forgot to update function call. Fixed in 6eff42244fd484a1a9ce6be689160ca2c588c77a