I don't see the need of defining a new function that is so similar to ```write_loss_map```. I would refactor the latter such that it can be used to store both conditional losses (poe not null) and loss maps.