parameters: (self)
return_statement: return True
docstring: Update the allowed spectra/tableworkspace in the fit browser
docstring_summary: Update the allowed spectra/tableworkspace in the fit browser
docstring_tokens: Update the allowed spectra / tableworkspace in the fit browser
function: def _update_workspace_info(self):
          " Update the allowed spectra/tableworkspace in the fit browser"
          allowed_spectra_old = self.allowed_spectra
          allowed_spectra = self._get_allowed_spectra()
          table = self._get_table_workspace()
          if allowed_spectra:
              self._update_spectra(allowed_spectra, allowed_spectra_old)
          elif table:
              self.addAllowedTableWorkspace(table)
          else:
              self.toolbar_manager.toggle_fit_button_checked()
              logger.warning("Cannot use fitting tool: No valid workspaces to fit to.")
              return False
          return True
function_tokens: def _update_workspace_info ( self ) : allowed_spectra_old = self . allowed_spectra allowed_spectra = self . _get_allowed_spectra ( ) table = self . _get_table_workspace ( ) if allowed_spectra : self . _update_spectra ( allowed_spectra , allowed_spectra_old ) elif table : self . addAllowedTableWorkspace ( table ) else : self . toolbar_manager . toggle_fit_button_checked ( ) logger . warning ( "Cannot use fitting tool: No valid workspaces to fit to." ) return False return True