Open mferrera opened 3 months ago
In the Faultroom export we have
These are the juxtaposition names in the faultroom file that are relevant to RMS. However, they are not aligned with the names in SMDA. The idea is to make these RMS names to the ones in SMDA, and this mapping already exists in the global configuration file:
The idea is when exported the faultroom metadata, the SMDA name should be exported in the metadata, not the RMS name.
This requires having access to the global configuration file, so it should be done in the object data provider without modifying the original faultroom export file or its parsed object in Python.
Then an initial implementation could be placing a helper function either in the data provider class so that it has access to dataio.config
We can take some inspiration from the existing implementation in the ObjectDataProvider base class:
In this case we'd only need the name and can ignore some part:
if (
isinstance(self.dataio.config, GlobalConfiguration)
and (strat := self.dataio.config.stratigraphy)
and name in strat
):
return strat[name].name