def _remove_array(self, field, key): """internal helper to remove a single array by name from each field""" field = parse_field_choice(field) if field == ROW_DATA_FIELD: self.GetRowData().RemoveArray(key) else: raise NotImplementedError('Not able to remove arrays from the ({}) data fiedl'.format(field)) return
def _remove_array(self, field, key): """Remove a single array by name from each field (internal helper).""" field = parse_field_choice(field) if field == FieldAssociation.POINT: self.GetPointData().RemoveArray(key) elif field == FieldAssociation.CELL: self.GetCellData().RemoveArray(key) elif field == FieldAssociation.NONE: self.GetFieldData().RemoveArray(key) else: raise NotImplementedError('Not able to remove arrays from the ({}) data fiedl'.format(field)) return