parameters: (self, is_raw, plot_type, detectors:str, run_string, period=None)
return_statement: return workspace_list
docstring: :param is_raw: Whether to use raw or rebinned data
          :param plot_type: plotting type, e.g Counts, Frequency Re
          :return: a list of workspace names
docstring_summary: :param is_raw: Whether to use raw or rebinned data
          :param plot_type: plotting type, e.g Counts, Frequency Re
          :return: a list of workspace names
docstring_tokens: : param is_raw : Whether to use raw or rebinned data : param plot_type : plotting type e . g Counts Frequency Re : return : a list of workspace names
function: def get_workspaces_to_plot(self, is_raw, plot_type, detectors:str, run_string, period=None):
          """
          :param is_raw: Whether to use raw or rebinned data
          :param plot_type: plotting type, e.g Counts, Frequency Re
          :return: a list of workspace names
          """
          workspace_list = []
          run = run_string_to_list(run_string)
          # make sure the run is in the context
          if run not in self.context.data_context.current_runs:
              return workspace_list
          multi_period = False
          if self.context.data_context.num_periods(run) >1:
              multi_period = True
              if period:
                  workspace_list += self.get_ws_names(run_string, multi_period, str(period),detectors)
              else:
                  for period_i in range(self.context.data_context.num_periods(run)):
                      # periods start at 1 and not 0
                      workspace_list += self.get_ws_names(run_string, multi_period, str(period_i+1),detectors)
          else:
              workspace_list += self.get_ws_names(run_string, multi_period, '1',detectors)
          return workspace_list
function_tokens: def get_workspaces_to_plot ( self , is_raw , plot_type , detectors : str , run_string , period = None ) : workspace_list = [ ] run = run_string_to_list ( run_string ) # make sure the run is in the context if run not in self . context . data_context . current_runs : return workspace_list multi_period = False if self . context . data_context . num_periods ( run ) > 1 : multi_period = True if period : workspace_list += self . get_ws_names ( run_string , multi_period , str ( period ) , detectors ) else : for period_i in range ( self . context . data_context . num_periods ( run ) ) : # periods start at 1 and not 0 workspace_list += self . get_ws_names ( run_string , multi_period , str ( period_i + 1 ) , detectors ) else : workspace_list += self . get_ws_names ( run_string , multi_period , '1' , detectors ) return workspace_list