CNES / MAJA

Level-2A processor used for atmospheric correction and cloud-detection. The active repository is the one below, this one is kept to leave access to the older issues.
https://gitlab.orfeo-toolbox.org/maja/maja
Apache License 2.0
137 stars 25 forks source link

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

Open ThomasCusson opened 3 years ago

ThomasCusson commented 3 years ago

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.

ThomasCusson commented 3 years ago

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.

petket-5 commented 3 years ago

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

Kind regards, Peter

ThomasCusson commented 7 months ago

Can we consider this issue closed yet ?