ZeroDivisionError
name: General Issue (FA)
about: Use this template for reporting an anomaly.
Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues and build/installation issues on GitHub.
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
- Maja installed from (source or binary): binary
- Maja version (use command below): 4.2.4
- Maja commit sha (if Maja is installed from source):
- Python version (From binpkg or custom): binpkg
- Complementary info (i.e. GCC/Compiler version)
You can collect some of this information using our environment capture script
You can also obtain the Maja version with:
maja --version
Describe the current behavior
2021-01-29 14:06:20 [9036] INFO MAJA 4.2 run:63 Cloud percentage validity check start
Traceback (most recent call last):
File "/softs/projets/muscate/maja/4.2.5/lib/python/orchestrator/launcher/maja.py", line 100, in <module>
main()
File "/softs/projets/muscate/maja/4.2.5/lib/python/orchestrator/launcher/maja.py", line 81, in main
lprocessor.scientific_processing()
File "/softs/projets/muscate/maja/4.2.5/lib/python/orchestrator/processor/l2_nominal_processor.py", line 216, in scientific_processing
l2_image_file_writer, checking_conditional_clouds)
File "/softs/projets/muscate/maja/4.2.5/lib/python/orchestrator/processor/l2_processor.py", line 644, in process_one_product
validity_l2_cloud_percentage.launch(global_input_dict, global_output_dict)
File "/softs/projets/muscate/maja/4.2.5/lib/python/orchestrator/modules/maja_module.py", line 66, in launch
self.run(dict_of_input, dict_of_output)
File "/softs/projets/muscate/maja/4.2.5/lib/python/orchestrator/processor/l2_pipelines/validity_l2_cloud_percentage.py", line 76, in run
(l2_stat.getoutput()["excludedcount"] + l2_stat.getoutput()["validcount"] - dict_of_output["L2NoDataNumber"])
ZeroDivisionError: float division by zero
Describe the expected behavior
Urgency/Criticity
- Urgency (Select Low/Medium/High): High
- Criticity (Select Low/Medium/High):
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem. Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
A path to a context folder is also accepted. Please note the Context policy
Correction
4.2.5