parameters: (self)
docstring: Create grouping workspace for ROI defined as a list of spectrum numbers
docstring_summary: Create grouping workspace for ROI defined as a list of spectrum numbers
docstring_tokens: Create grouping workspace for ROI defined as a list of spectrum numbers
function: def create_grouping_workspace_from_spectra_list(self):
          """
          Create grouping workspace for ROI defined as a list of spectrum numbers
          """
          grp_ws, _, _ = CreateGroupingWorkspace(InstrumentName=self.instrument,
                                                 OutputWorkspace=GROUP_WS_NAMES[self.group])
          for spec in self.spectra_list:
              det_ids = grp_ws.getDetectorIDs(spec - 1)
              grp_ws.setValue(det_ids[0], 1)
          self.group_ws = grp_ws
function_tokens: def create_grouping_workspace_from_spectra_list ( self ) : grp_ws , _ , _ = CreateGroupingWorkspace ( InstrumentName = self . instrument , OutputWorkspace = GROUP_WS_NAMES [ self . group ] ) for spec in self . spectra_list : det_ids = grp_ws . getDetectorIDs ( spec - 1 ) grp_ws . setValue ( det_ids [ 0 ] , 1 ) self . group_ws = grp_ws