Restored get_weight as it was [skip hazardlib]
Restored get_weight as it was [skip hazardlib]


Former-commit-id: 9e61d8887fabaf625b628e89357899f2ff345322 [formerly 59b68c1545ff9096b8e5c66961948635a33b03c4]
Former-commit-id: 907dda7ef0d5ec4ef53c59543cad244325e4c4a0
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine