parameters: (self, workspace)
docstring: Takes in the given workspace and lists it alongside its time regime
          value.  If the time regime has yet to be created, it will create it,
          and if there is already a workspace listed beside the time regime, then
          the new ws will be appended to that list.
  
          @param workspace The workspace to add
docstring_summary: Takes in the given workspace and lists it alongside its time regime
          value.  If the time regime has yet to be created, it will create it,
          and if there is already a workspace listed beside the time regime, then
          the new ws will be appended to that list.
docstring_tokens: Takes in the given workspace and lists it alongside its time regime value . If the time regime has yet to be created it will create it and if there is already a workspace listed beside the time regime then the new ws will be appended to that list .
function: def add_workspace(self, workspace):
          """
          Takes in the given workspace and lists it alongside its time regime
          value.  If the time regime has yet to be created, it will create it,
          and if there is already a workspace listed beside the time regime, then
          the new ws will be appended to that list.
  
          @param workspace The workspace to add
          """
  
          # Get the time regime of the workspace, and use it to find the DRange.
          d_range = self._d_range_of(workspace)
  
          logger.information('dRange for workspace %s is %s' % (workspace.name(), str(d_range)))
  
          # Add the workspace to the map, alongside its DRange.
          if d_range not in self._map:
              self._map[d_range] = [workspace]
          else:
              def x_range_differs(x):
                  return x.readX(0)[-1] != workspace.readX(0)[-1]
  
              if all(map(x_range_differs, self._map[d_range])):
                  self._map[d_range].append(workspace)
function_tokens: def add_workspace ( self , workspace ) : # Get the time regime of the workspace, and use it to find the DRange. d_range = self . _d_range_of ( workspace ) logger . information ( 'dRange for workspace %s is %s' % ( workspace . name ( ) , str ( d_range ) ) ) # Add the workspace to the map, alongside its DRange. if d_range not in self . _map : self . _map [ d_range ] = [ workspace ] else : def x_range_differs ( x ) : return x . readX ( 0 ) [ - 1 ] != workspace . readX ( 0 ) [ - 1 ] if all ( map ( x_range_differs , self . _map [ d_range ] ) ) : self . _map [ d_range ] . append ( workspace )