equinor / semeio

Semeio is a collection of jobs and workflow jobs used in ert (https://github.com/equinor/ert).
https://github.com/equinor/semeio
GNU General Public License v3.0
10 stars 27 forks source link

Validate DESIGN2PARAM configuration at start up instead of when running forward model #638

Open eivindjahren opened 2 months ago

eivindjahren commented 2 months ago

Currently the following failures occur when you run the forward model (present in our logs). They should be validated when the config is read:


Provided realization arg 299 does not exist in design matrix


Traceback (most recent call last):
File "../bin/design2params", line 8, in <module>
sys.exit(main_entry_point())
File ".../lib64/python3.8/site-packages/semeio/forward_models/scripts/design2params.py", line 77, in main_entry_point
design2params.run(
File ".../lib64/python3.8/site-packages/semeio/forward_models/design2params/design2params.py", line 53, in run
default_df = _read_defaultssheet(xlsfilename, defaultssheetname)
File ".../lib64/python3.8/site-packages/semeio/forward_models/design2params/design2params.py", line 317, in _read_defaultssheet
if paramname != paramname.strip():
AttributeError: 'float' object has no attribute 'strip'

File .../input/distributions/design.xlsx is probably not of correct type. Failed with exception 'Worksheet named 'ETC' not found'

WARNING - Design matrix contains empty cells [...]

argument xlsfilename: .../input/designmatrix/design_matrix.xlsx is not an existing file!

Design matrix not valid, error: Column headers not present in column: ...


Column header "X " contains initial or trailing whitespace.


design2params: error: argument realization: invalid int value: 'not_int'


File .../ert/model/../input/designmatrix/design_matrix.xlsx not found