TypeError when passing a np.int64 to s_b4match.
When passing an int64 to s_b4match, AROSICS raises a TypeError although an int64 should be interpretable.
bandindex = np.argmin(...) # int64
CRL = COREG_LOCAL(
im_ref=ref,
im_tgt=tgt,
grid_res=20,
s_b4match=bandindex
)
File "/misc/soft/local/pygfz/mambaforge/envs/retina_s_gfz/lib/python3.11/site-packages/arosics/Tie_Point_Grid.py", line 301, in _get_spatial_shifts
CR.calculate_spatial_shifts()
File "/misc/soft/local/pygfz/mambaforge/envs/retina_s_gfz/lib/python3.11/site-packages/arosics/CoReg.py", line 1653, in calculate_spatial_shifts
self._validate_ssim_improvement() # FIXME uses the not updated matchWin size
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/misc/soft/local/pygfz/mambaforge/envs/retina_s_gfz/lib/python3.11/site-packages/arosics/CoReg.py", line 1457, in _validate_ssim_improvement
otherWin_deshift_geoArr = self._get_deshifted_otherWin()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/misc/soft/local/pygfz/mambaforge/envs/retina_s_gfz/lib/python3.11/site-packages/arosics/CoReg.py", line 1414, in _get_deshifted_otherWin
).correct_shifts()
^^^^^^^^^^^^^^^^
File "/misc/soft/local/pygfz/mambaforge/envs/retina_s_gfz/lib/python3.11/site-packages/arosics/DeShifter.py", line 400, in correct_shifts
out_geoArr.metadata = self.im2shift.metadata[[self.band2process]] \
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/misc/soft/local/pygfz/mambaforge/envs/retina_s_gfz/lib/python3.11/site-packages/geoarray/metadata.py", line 299, in __getitem__
raise TypeError(given, 'Given list must contain string or integer items.')
TypeError: ([74], 'Given list must contain string or integer items.')