Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Dec 22, 2020 · 3 comments

Comments

@ThomasCusson
Copy link

ThomasCusson commented Dec 22, 2020

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
Copy link
Author

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.

@ThomasCusson ThomasCusson changed the title if "NbNonInterpolate" in self._beforeFile.keys(): 'NoneType' object has no attribute 'keys' Solution for the error happening in case you try to use CAMS (if "NbNonInterpolate" in self._beforeFile.keys(): 'NoneType' object has no attribute 'keys') Jan 13, 2021
@petket-5
Copy link

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

Kind regards,
Peter

@ThomasCusson
Copy link
Author

Can we consider this issue closed yet ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants