IndexError: index 0 is out of bounds for axis 0 with size 0
I just rebuilt the EnPT CI runner and now tests fail somewhere in SICOR:
_ Test_EnPT_Controller_DLR_testdata_ACWater.test_run_all_processors_without_acwater_installed _
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/root/mambaforge/envs/ci_env/lib/python3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/root/mambaforge/envs/ci_env/lib/python3.9/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/tmp/sicor/sicor/AC/RtFo_3_phases.py", line 1367, in __oe__
se = __calc_se__(xx=__xa__[i1, i2, :], dt=__data__[i1, i2, :], pt=__pt__[i1, i2, :], sb=__sb__,
File "/tmp/sicor/sicor/AC/RtFo_3_phases.py", line 1061, in calc_se
kb = self.calc_kb(xx=xx, pt=pt, num_bd=num_bd, sb=sb)
File "/tmp/sicor/sicor/AC/RtFo_3_phases.py", line 1033, in calc_kb
rdn = self.toa_rad(xx=xx, pt=pt)
File "/tmp/sicor/sicor/AC/RtFo_3_phases.py", line 900, in toa_rad
f_int = interpol_lut_red(lut1=self.lut_red_fit[:, :, :, 0], lut2=self.lut_red_fit[:, :, :, 1:],
File "/tmp/sicor/sicor/Tools/EnMAP/LUT.py", line 330, in interpol_lut_red
lim[0, ii] = wh[0] - 1
IndexError: index 0 is out of bounds for axis 0 with size 0
"""
The above exception was the direct cause of the following exception:
tests/test_controller.py:86: in test_run_all_processors_without_acwater_installed
self.CTR.run_all_processors()
enpt/execution/controller.py:184: in run_all_processors
self.run_atmospheric_correction()
enpt/execution/controller.py:152: in run_atmospheric_correction
self.L1_obj.run_AC()
enpt/model/images/images_sensorgeo.py:857: in run_AC
AC.run_ac(self)
enpt/processors/atmospheric_correction/atmospheric_correction.py:224: in run_ac
self._run_AC__land_mode(enmap_ImageL1)
enpt/processors/atmospheric_correction/atmospheric_correction.py:116: in _run_AC__land_mode
sicor_ac_enmap(enmap_l1b=enmap_ImageL1,
/tmp/sicor/sicor/sicor_enmap.py:91: in sicor_ac_enmap
res = __minimize__(fo=fo_enmap, opt_func=fo_func_enmap, logger=logger, unknowns=unknowns)
/tmp/sicor/sicor/AC/RtFo_3_phases.py:1259: in __minimize__
results.get()
/root/mambaforge/envs/ci_env/lib/python3.9/multiprocessing/pool.py:771: in get
raise self._value
E IndexError: index 0 is out of bounds for axis 0 with size 0
The installed SICOR version is:
sicor 0.17.5 pyhd8ed1ab_0 conda-forge/noarch 40 MB
The pipeline that fails also contains the logs.
Did the LUT somehow change?
Edited by Daniel Scheffler