Closed Florisklooster closed 1 year ago
We use the meta.pop("monitoring_well")
when we create an observation object from the meta dictionary. The observation object will have the value set as an attribute. In this case the monitoring_well
attribute. So the data is still there but not in the meta dictionary anymore.
The problem is that the map_label
in the interactive plot function will only look in the meta
dictionary of the observation. I modified the code so it will look in the attributes of the observation first and if the attribute is not found it will look in the meta
dictionary. The new code is available in the 'dev' branch.
I hope this will solve your issue.
It does, thanks a lot!
When trying to make an interactive map with map_labels (with the locations: 'monitoring_well' as label), this gives a KeyError. This is because allmost all the metadata is popped (e.g. monitoring_well=meta.pop("monitoring_well")) when the metadata is returned in the 'from_bro' function in the observation.py, why is that done?