peak_position_refinement_com with no navigation axes
line 941 uses chunksize which doesn't seem to be a dask attribute. I tried changing it to .chunks[:-2] and this returned an empty value ,ie "()".
print('dp',dp)
peaks_com = dp.peak_position_refinement_com(peaks, lazy_result=False, show_progressbar=False)
dp <PixelatedSTEM, title: , dimensions: (|101, 101)>
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-16-ef2fd2045889> in <module>()
1 print('dp',dp)
----> 2 peaks_com = dp.peak_position_refinement_com(peaks, lazy_result=False, show_progressbar=False)
~\AppData\Roaming\Python\Python36\site-packages\pixstem\pixelated_stem_class.py in peak_position_refinement_com(self, peak_array, square_size, lazy_result, show_progressbar)
939 dask_array = da.from_array(self.data, chunks=chunks)
940
--> 941 chunks_peak = dask_array.chunksize[:-2]
942 if hasattr(peak_array, 'chunks'):
943 peak_array_dask = da.rechunk(peak_array, chunks=chunks_peak)
AttributeError: 'Array' object has no attribute 'chunksize'
Thank you, Eric