equinor / flownet

FlowNet - Data-Driven Reservoir Predictions
GNU General Public License v3.0
63 stars 29 forks source link

Rel error 409 #420

Closed plgbrts closed 3 years ago

plgbrts commented 3 years ago

With this PR, in case for an observation either rel_error or min_error is missing an error message is given: e.g: data_source: simulation: input_case: ../input_model/egg/EGG_MODEL_ECL vectors: WBHP: rel_error: 0.005 WOPR: min_error: 1

gives the error:

_ValueError: Both min_error and relerror must be set. This requirement is not satisfied for ['WBHP', 'WOPR'] observations

In case both rel_error and min_error are absent flownet gives an error as the configuration file does not satisfy the template requirements as defined in _config_parser.py (using the configsuite module). The error message is however not very insightful: ValueError: The configuration is not valid:Is x a dictionary is false on input 'None'. To fix this would require to dig into the configsuite module which I park for now as it may have not a high priority. The most important aspect of this PR is that observations are not silently skipped anymore in case of incomplete input specification.


Contributor checklist