-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dotfile to root of revision as standard #58
Comments
Suggestion for a user story for a minimum viable product here: (There has been/are discussions around e.g. defining a standard ERT config variable for this, etc, but this is a good use case for the (It is also tempting to solve this by simply requiring standard location and contents of A minimum viable product should also ship with some basic tooling, and an idea of how to add contents to |
We should consider whether some of this information can be inferred from the project set-up, pulled from the SMDA API (i.e. uuid's), and pre-populated automatically. This might be terribly error prone -- but so is relying on user input. |
Handling master data is an increasing problem. We don't have good solutions for it currently. That said, the amount of master data currently referenced in Technically, we have reduced it down to bare minimums (we only include Some options, specifically on the master data:
The upside of doing this, would be that we centrally define and maintain this on behalf of everyone. The downside is the same - it creates a single point of failure. We could possibly cache this in an One challenge would be that in order to query such a centralized record, one would have to at least have the It should also be mentioned that this setup is something one person does once per model setup. It is part of the very basic setup of a brand new FMU setup, (or retrofitting to existing setups). So it is not something that by any means will have major impact on anyone's work day. It takes 10-ish minutes to do. Instead of creating elaborate solutions for it, it might be more rational to just do it for them. |
Based on discussions 15. nov 2023
Currently, some masterdata are stored in
global_variables.yml
. These are technically metadata about the model, and contain mostly identifiers to entities in SMDA, includingcountry
,field
,discovery
,coordinate_reference_system
andstratigraphic_column
. These elements do not change frequently, and may not natively belong inglobal_variables.yml
.When pushing data to Sumo, it is also required that the model metadata contains a reference to the asset which in turn is mapped to the term asset in Sumo - used for access control, storage choices, etc. This is also currently included in
global_variables.yml
.There is a need for more consistent storage of configuration of static nature. This proposal is to move such elements out of
global_variables.yml
to another more suitable location.Proposal:
On the root of (each) FMU revision, we place a dotfile called
.fmu
. The contents of this file can be expanded as needed, but a first iteration content can be:Current _masterdata.yml: https://github.com/equinor/fmu-drogon/blob/master/fmuconfig/input/_masterdata.yml
Detection of
global_variables.yml
A frequent problem is that local installations place
global_variables.yml
in non-standard place and/or with no-standard names. The.fmu
could be a no-discussions location to refer to the location of theglobal_variables.yml
. This would, as one example, be relevant for this issue in fmu-dataio.Detection of Sumo
During development of Sumo, there may be a need to programmatically find out if a particular model revision belongs to an asset onboarded on Sumo. This may replace the use of the
--sumo
optional argument in FMU data, which is also relevant for this issue in fmu-dataio.File format
User should ideally "never" access the dotfile (hence it is a dotfile/hidden file). We start with using YAML format for this file, but without guarantees that this may change in the future. Related to this, it is probably smart to have some dedicated tooling on top of this configuration item, so that clients can e.g.
In the bigger picture, this also takes an important step towards slimming down
global_variables.yml
- we take something out, and put it into a brutally standardized location. Going forward, there can be more discussions on which elements that fits where.The text was updated successfully, but these errors were encountered: