parameters: (self, workspace_name)
docstring: Searches through all of the stored workspaces and remmves any which match the name given. This is used to handle
                  workspaces being removed from the ADS.
                  :param workspace_name:
                  :return:
docstring_summary: Searches through all of the stored workspaces and remmves any which match the name given. This is used to handle
                  workspaces being removed from the ADS.
                  :param workspace_name:
                  :return:
docstring_tokens: Searches through all of the stored workspaces and remmves any which match the name given . This is used to handle workspaces being removed from the ADS . : param workspace_name : : return :
function: def remove_workspace_by_name(self, workspace_name):
          """
                  Searches through all of the stored workspaces and remmves any which match the name given. This is used to handle
                  workspaces being removed from the ADS.
                  :param workspace_name:
                  :return:
  
                  """
  
          def _remove_workspace_from_dict_by_name(workspace_name, dictionary):
              set_of_keys_to_remove = set()
              for key, workspace_wrapper in dictionary.items():
                  if workspace_wrapper.workspace_name == workspace_name:
                      set_of_keys_to_remove.add(key)
  
              for key in set_of_keys_to_remove:
                  dictionary.pop(key)
  
          _remove_workspace_from_dict_by_name(workspace_name, self._workspace)
          _remove_workspace_from_dict_by_name(
              workspace_name, self.workspace_rebin)
function_tokens: def remove_workspace_by_name ( self , workspace_name ) : def _remove_workspace_from_dict_by_name ( workspace_name , dictionary ) : set_of_keys_to_remove = set ( ) for key , workspace_wrapper in dictionary . items ( ) : if workspace_wrapper . workspace_name == workspace_name : set_of_keys_to_remove . add ( key ) for key in set_of_keys_to_remove : dictionary . pop ( key ) _remove_workspace_from_dict_by_name ( workspace_name , self . _workspace ) _remove_workspace_from_dict_by_name ( workspace_name , self . workspace_rebin )