when running python bin/openquake --config_file=smoketests/simplecase/config.gem --debug=debug --output_type=xml
aggregate still try to read from kvs, code needs refactoring/correction
DEBUG:root:Constraining exposure parsing to <openquake.shapes.RegionConstraint object at 0xba5ed2c>
DEBUG:root:Job has partitioned 177 sites into 2 blocks
DEBUG:root:starting task block, block_id = BLOCK:1 of 2
DEBUG:root:starting task block, block_id = BLOCK:2 of 2
DEBUG:root:Found 3 stored GMFs...
DEBUG:root:Found 177 stored assets...
DEBUG:root:Traceback (most recent call last):
DEBUG:root:File "bin/openquake", line 121, in <module>
DEBUG:root:job.run_job(FLAGS.config_file, FLAGS.output_type)
DEBUG:root:File "/home/kpanic/src/openquake-kpanic/openquake/job/__init__.py", line 75, in run_job
DEBUG:root:results = a_job.launch()
DEBUG:root:File "/home/kpanic/src/openquake-kpanic/openquake/job/__init__.py", line 331, in launch
DEBUG:root:results.extend(self.execute())
DEBUG:root:File "/home/kpanic/src/openquake-kpanic/openquake/risk/job/general.py", line 60, in preloader
DEBUG:root:return fn(self, *args, **kwargs)
DEBUG:root:File "/home/kpanic/src/openquake-kpanic/openquake/risk/job/general.py", line 69, in output_writer
DEBUG:root:fn(self, *args, **kwargs)
DEBUG:root:File "/home/kpanic/src/openquake-kpanic/openquake/risk/job/probabilistic.py", line 81, in execute
DEBUG:root:aggregate_loss_curve.compute_aggregate_curve(self)
DEBUG:root:File "/home/kpanic/src/openquake-kpanic/openquake/risk/job/aggregate_loss_curve.py", line 81, in compute_aggregate_curve
DEBUG:root:aggregate_loss_curve.compute(),
DEBUG:root:File "/home/kpanic/src/openquake-kpanic/openquake/risk/probabilistic_event_based.py", line 377, in compute
DEBUG:root:loss_range = _compute_loss_ratios_range(losses, number_of_samples)
DEBUG:root:File "/home/kpanic/src/openquake-kpanic/openquake/risk/probabilistic_event_based.py", line 181, in _compute_loss_ratios_range
DEBUG:root:return linspace(loss_ratios.min(), loss_ratios.max(), number_of_samples)
DEBUG:root:ValueError
DEBUG:root::
DEBUG:root:zero-size array to ufunc.reduce without identity
I'm working on an optimized version of the aggregate computation that doesn't need access to kvs. It should be fixed soon.