With brightway 2.5, there does not seem to be an easy way to check if the LCA dictionaries have been remapped (other than checking if the keys are integers), this means that on can call
lca.remap_inventory_dicts()
twice and then the 2nd call errors as it tries to remap a remapped dict.
Proposal
Have a remapped property (exposed or internal) so that multiple calls to remap_inventory_dicts have no further effect.
With brightway 2.5, there does not seem to be an easy way to check if the LCA dictionaries have been remapped (other than checking if the keys are integers), this means that on can call
twice and then the 2nd call errors as it tries to remap a remapped dict.
Proposal
Have a
remapped
property (exposed or internal) so that multiple calls toremap_inventory_dicts
have no further effect.cc @cmutel