Closed dynaryu closed 5 years ago
I cannot reproduce the bug with the current master. I try it with the ebrisk demo. If you can reproduce it with the current master, please send the files you are using.
When I used oq engine --run job.ini --exports csv, there is no output starting with losses_by_event, but somehow oq engine --export-outputs tries to export it and failed as above. Note that the simulation that I ran was a scenario risk calculation where I imported a single gmf. Hope it helps to replicate the error. Otherwise, I'm happy to pass the input data.
You must give me the inputs because I cannot reproduce the issue. Even better, send me a reduced version of the calculation that it is small enough to be used as a test case.
I figured out the reason. If the keyword of "aggregate_by" exists in the job.ini for the scenario risk calculation, then somehow the engine did not export result by event.
aggregate_by
is implemented only for ebrisk. I will add a check.