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

Prevent cube generation without quality band set #72

Closed
raphaelrpl opened this issue Jul 13, 2020 · 1 comment
Closed

Prevent cube generation without quality band set #72

raphaelrpl opened this issue Jul 13, 2020 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@raphaelrpl
Copy link
Contributor

raphaelrpl commented Jul 13, 2020

The following error occurs when dispatch data cube without quality band:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/celery/app/trace.py", line 412, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/app/cube_builder/celery/__init__.py", line 67, in __call__
    return TaskBase.__call__(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/celery/app/trace.py", line 704, in __protected_call__
    return self.run(*args, **kwargs)
  File "/app/cube_builder/tasks.py", line 180, in prepare_blend
    efficacy, cloudratio = quality_date_stats[_merge['date']]

The code seems right, however, we must to prevent the cube generation when quality is not set.

@raphaelrpl raphaelrpl added the bug Something isn't working label Jul 13, 2020
@raphaelrpl raphaelrpl self-assigned this Jul 13, 2020
@raphaelrpl raphaelrpl added this to the Version 0.4.0 milestone Jul 13, 2020
@raphaelrpl
Copy link
Contributor Author

Resolved in e137790

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant