gem/openquake — pull request #658 by larsbutler (2012-01-20 10:08:20+00:00)
Title: Fix broken event based calcs

Addresses https://bugs.launchpad.net/openquake/+bug/919113

During the removal of the mixins, a handful of bugs were created in the Event-Based calculator code. Unfortunately, we didn't catch this because there is no QA test coverage for either the Hazard or Risk Event-Based calcs.

This branch fixes the bugs (you can confirm by running the `probabilistic_event_based_risk` demo; it takes a long time to run), but does not add any QA tests. We need test data from the science team. See https://bugs.launchpad.net/openquake/+bug/919114.

In addition to the bug fixes, you'll notice that I also remove some related unused code (`_get_number_of_samples ` was referencing an old config param which doesn't exist anymore).