parameters: (self, new_name, old_name)
docstring: Rename a workspace, and update the artists, creation arguments and tracked workspaces accordingly
          :param new_name : the new name of workspace
          :param old_name : the old name of workspace
docstring_summary: Rename a workspace, and update the artists, creation arguments and tracked workspaces accordingly
          :param new_name : the new name of workspace
          :param old_name : the old name of workspace
docstring_tokens: Rename a workspace and update the artists creation arguments and tracked workspaces accordingly : param new_name : the new name of workspace : param old_name : the old name of workspace
function: def rename_workspace(self, new_name, old_name):
          """
          Rename a workspace, and update the artists, creation arguments and tracked workspaces accordingly
          :param new_name : the new name of workspace
          :param old_name : the old name of workspace
          """
          for cargs in self.creation_args:
              if cargs['workspaces'] == old_name:
                  cargs['workspaces'] = new_name
          for ws_name, ws_artist_list in list(self.tracked_workspaces.items()):
              for ws_artist in ws_artist_list:
                  if ws_artist.workspace_name == old_name:
                      ws_artist.rename_data(new_name)
              if ws_name == old_name:
                  self.tracked_workspaces[new_name] = self.tracked_workspaces.pop(old_name)
function_tokens: def rename_workspace ( self , new_name , old_name ) : for cargs in self . creation_args : if cargs [ 'workspaces' ] == old_name : cargs [ 'workspaces' ] = new_name for ws_name , ws_artist_list in list ( self . tracked_workspaces . items ( ) ) : for ws_artist in ws_artist_list : if ws_artist . workspace_name == old_name : ws_artist . rename_data ( new_name ) if ws_name == old_name : self . tracked_workspaces [ new_name ] = self . tracked_workspaces . pop ( old_name )