def __setitem__(self, selection, value): fields, selection = pop_fields(selection) selection = ensure_tuple(selection) selection = replace_lists(selection) if is_coordinate_selection(selection, self.array): self.array.set_coordinate_selection(selection, value, fields=fields) elif is_mask_selection(selection, self.array): self.array.set_mask_selection(selection, value, fields=fields) else: err_vindex_invalid_selection(selection)