Moved calculation of the weights to commonlib
Moved calculation of the weights to commonlib


Former-commit-id: aec7cde57d522d286238e573cca16aeb9f4a86b1
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine