You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defselectionField(self):
""" Retrieves the current field selection for plotting. - Returns a dictionary with selected positioner and detectors indices. - Format: {'X': positioner_index, 'Y': [detector_indices]}. - Returns None if no selection is made. """returnself._selection_fielddefsetSelectionField(self, new_selection=None):
""" Updates the current field selection for plotting. - Accepts a dictionary specifying new selection of positioner and detectors. - Resets to None if given an empty dictionary. - Format for new_selection: {'X': positioner_index, 'Y': [detector_indices]}. """# TODO - how to enfore selectionField structure? Turn it into a class!# what if new_selectionvdoes not have X or Y key, or any of those key return# a None value? or is {}?self._selection_field=new_selectionifnew_selection!= {} elseNone
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: