equinor/xtgeo

Bug in BW import if corresponding regular well not in RMS project

tnatt opened this issue · 0 comments

Bug triggered when a well is present in a BW object but does not exist in the RMS project, i.e. either deleted or renamed after the BW job was run. This is a corner case and will not occur often, but still we should get it fixed.

image

if wname in rox.project.wells:
self._rkb = rox.project.wells[wname].rkb
self._xpos, self._ypos = rox.project.wells[wname].wellhead
else:
self._rkb = None
self._xpos, self._ypos = (
self._df[_AttrName.XNAME.value][0],
self._df[_AttrName.YNAME.value][0],
)

The self._df attribute was deleted in #1061.