Running motion correction.
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-65-7f654352bfd4> in <module>
14 print("Running motion correction.")
15 mc_approach = sima.motion.HiddenMarkov2D(granularity='row', max_displacement=[20, 30], verbose=False)
---> 16 dataset = mc_approach.correct(sequences, dataset, trim_criterion=0.95)
~/.local/lib/python3.6/site-packages/sima/motion/motion.py in correct(self, dataset, savedir, channel_names, info, correction_channels, trim_criterion)
~/.local/lib/python3.6/site-packages/sima/motion/motion.py in estimate(self, dataset)
~/.local/lib/python3.6/site-packages/sima/motion/hmm.py in _estimate(self, dataset)
~/.local/lib/python3.6/site-packages/sima/motion/hmm.py in _estimate_shifts(self, dataset)
~/.local/lib/python3.6/site-packages/sima/motion/motion.py in estimate(self, dataset)
~/.local/lib/python3.6/site-packages/sima/motion/frame_align.py in _estimate(self, dataset)
~/.local/lib/python3.6/site-packages/sima/motion/frame_align.py in _frame_alignment_base(dataset, max_displacement, method, n_processes)
~/.local/lib/python3.6/site-packages/sima/motion/frame_align.py in _align_frame(inputs)
~/.local/lib/python3.6/site-packages/sima/motion/frame_align.py in _update_reference(sums, counts, offset, displacement, image)
~/.local/lib/python3.6/site-packages/sima/motion/frame_align.py in _resize_array(array, displacement, frame_shape)
ValueError: operands could not be broadcast together with shapes (3,) (4,)