CNES/MAJA

Solution for the error happening in case you try to use CAMS (if "NbNonInterpolate" in self._beforeFile.keys(): 'NoneType' object has no attribute 'keys')

ThomasCusson opened this issue · 3 comments

Hello,

I’m currently trying to add CAMS to our production chain.
The CAMS files are correctly found by get_cams_files in Start_maja.py, and correctly selected by filter_cams_by_products in Workplan.py.

However when I launch a production with CAMS I always encounter the following error message for all the L2A products I try to produce :

Nonetype

Do you have any idea of what could be causing this error ?

I’m using MAJA-4.2.1 with python 3.7.

I think I found the problem, and it seems to be a copy-paste typo in the code :

image

In "orchestrator/common/interfaces/maja_cams_files_handler.py", at line 263, there is a call to "_beforeFile" that should be "_afterFile" instead.

This is indeed the problem. Thank you for the report, we will incorporate it in the next version.

Kind regards,
Peter

Can we consider this issue closed yet ?