gem/oq-engine — pull request #851 by larsbutler (2012-08-27 11:05:12+00:00)
Title: SES calc fixes

Related to https://bugs.launchpad.net/openquake/+bug/1028327.

This branch correct the number of Stochastic Event Sets (SES) records which are generated per logic tree realization. The number of SESs per realization should be exactly equal to the `ses_per_logic_tree_path` parameter specified in the job config file.

Previously, only 1 SES record was created per logic tree sample. All ruptures for the realization were associated with this SES. This was not correct.

These changes are very closely related to https://github.com/gem/oq-engine/pull/844.