ecl2df is used as part of the Flownet tool (https://github.com/equinor/flownet). We are applying it to an Equinor asset model that contains the following lines in the SCHEDULE section:
COMPDAT
-- WELL I J K1 K2 stat Sat. CF DIAM KH SKIN ND DIR Ro
' ' 0 0 1 47 'SHUT' 1 1* 0.152 /
/
(The spaces around the * are not there in the actual file.)
This causes an error that originates from compdat.py, line 130: "WELSPECS must be provided when I is defaulted in COMPDAT" since rec_data["WELL"] in this case is equal to '*' which is not included in the well list called "welspecs".
A solution could be to check if rec_data["WELL"] contains a * and, if so, create a well list that contains all wells that meet the required name format. The check that I and J are specified should then be done for all wells in this list.
ecl2df is used as part of the Flownet tool (https://github.com/equinor/flownet). We are applying it to an Equinor asset model that contains the following lines in the SCHEDULE section:
COMPDAT -- WELL I J K1 K2 stat Sat. CF DIAM KH SKIN ND DIR Ro ' ' 0 0 1 47 'SHUT' 1 1* 0.152 / /
(The spaces around the * are not there in the actual file.)
This causes an error that originates from compdat.py, line 130: "WELSPECS must be provided when I is defaulted in COMPDAT" since rec_data["WELL"] in this case is equal to '*' which is not included in the well list called "welspecs".
A solution could be to check if rec_data["WELL"] contains a * and, if so, create a well list that contains all wells that meet the required name format. The check that I and J are specified should then be done for all wells in this list.