ValueError: 423.03 is not in list
Since 1330aa26, I get a ValueError when running EnPT including ACwater/Polymer:
2022/12/07 11:51:41: SICOR atmospheric correction for EnMAP in combined mode successfully finished!
vnir
2022/12/07 11:51:41: Running polymer...
FAILED
tests/test_controller.py:79 (Test_EnPT_Controller_DLR_testdata_ACWater.test_run_all_processors)
self = <tests.test_controller.Test_EnPT_Controller_DLR_testdata_ACWater testMethod=test_run_all_processors>
def test_run_all_processors(self):
> self.CTR.run_all_processors()
test_controller.py:81:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../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:858: in run_AC
AC.run_ac(self)
../enpt/processors/atmospheric_correction/atmospheric_correction.py:252: in run_ac
self._run_AC__combined_mode(enmap_ImageL1)
../enpt/processors/atmospheric_correction/atmospheric_correction.py:189: in _run_AC__combined_mode
polymer_ac_enmap(enmap_l1b=enmap_ImageL1,
../../../../mambaforge/envs/enpt_full/lib/python3.9/site-packages/acwater/acwater.py:101: in polymer_ac_enmap
ibands_vnir = [bands_wavelength.index(b) for b in enmap_l1b.vnir.detector_meta.wvl_center]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.0 = <iterator object at 0x7fa5d2b2aeb0>
> ibands_vnir = [bands_wavelength.index(b) for b in enmap_l1b.vnir.detector_meta.wvl_center]
E ValueError: 423.03 is not in list
../../../../mambaforge/envs/enpt_full/lib/python3.9/site-packages/acwater/acwater.py:101: ValueError
Unfortuantely, this commit is already included in the master branch, which in turn also breaks EnPT. To avoid that in future, please do not include any untested commits into the master branch of ACwater. I can only recommend to set up a Continuous Integration system for ACwater which automatically runs a set of tests on your code before merging into the master branch.