Restored build_loss_maps as it was [skip CI]
Restored build_loss_maps as it was [skip CI]


Former-commit-id: 83a97491b97c983eea99b768268cfb4aefd4ff57 [formerly a971030106444026c1d2b61fe04b4910ab480ff8]
Former-commit-id: ee754e10913ea3e00e09bb940356676b065c5eb4
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine