File "/Users/johannes/anaconda3/envs/3p7main/lib/python3.7/site-packages/mpdaf/obj/image.py", line 1230, in peak
d = self.data[imin:imax, jmin:jmax]
File "/Users/johannes/anaconda3/envs/3p7main/lib/python3.7/site-packages/numpy/ma/core.py", line 3174, in __getitem__
dout = self.data[indx]
Hi,
When trying to find the peak position with
mpdaf.Image.peak()
, I ran into an issue (mpdaf version 3.2 from pip)The issue seems to be that these indices are not integers: https://github.com/musevlt/mpdaf/blob/77def22802754c060d8a333d6acaf7b288218c21/lib/mpdaf/obj/image.py#L1232 So I guess
imin, imax, jmin, jmax
should be converted to integers before this line?Thanks, Johannes