bp/resqpy

Bug affecting PolylineSet in the presence of mixed open and closed polylines

Closed this issue · 0 comments

The RESQML schema includes an AbstractBooleanArray for the indicators of whether each polyline in a PolylineSetRepresentation is closed or not. The resqpy code implements the abstract array as a constant array if all the polylines in the set have the same closed or open status. When there is a mix, the abstract array is implemented as a BooleanArrayFromIndexArray. There are a bug and another possible bug in the code in this situation:

  • in the ...FromIndexArray case, the create_xml() code uses a tag of 'Value' where it should be 'IndexIsTrue'
  • the actual value of that node (the Text field) may have the opposite boolean value of that which is needed