original_docstring: Handles setting up the timesteps on on the pipeline for a file series reader.
  
      Args:
          algorithm (vtkDataObject): The data object (Proxy) on the pipeline
              (pass `self` from algorithm subclasses)
          nt (int or list): Number of timesteps (Pass a list to use length of
              that list)
          dt (float): The discrete value in seconds for the time step.
          explicit (boolean): if true, this will treat the nt argument as the exact
              timestep values to use
  
      Return:
          numpy.array : Returns the timesteps as an array
      
docstring: Handles setting up the timesteps on on the pipeline for a file series reader.
docstring_tokens: Handles setting up the timesteps on on the pipeline for a file series reader .
code: def update_time_steps(algorithm, nt, dt=1.0, explicit=False):
      """Handles setting up the timesteps on on the pipeline for a file series reader.
  
      Args:
          algorithm (vtkDataObject): The data object (Proxy) on the pipeline
              (pass `self` from algorithm subclasses)
          nt (int or list): Number of timesteps (Pass a list to use length of
              that list)
          dt (float): The discrete value in seconds for the time step.
          explicit (boolean): if true, this will treat the nt argument as the exact
              timestep values to use
  
      Return:
          numpy.array : Returns the timesteps as an array
      """
      if explicit and isinstance(nt, collections.Iterable):
          timesteps = nt
      else:
          if isinstance(nt, collections.Iterable):
              nt = len(nt)
          timesteps = _calculate_time_range(nt, dt=1.0)
      if len(timesteps) < 1:
          # NOTE: we may want to raise a warning here on the dev side.
          #       if developing a new algorithm that uses this, you may want to
          #       know exactly when this failse to update
          #'update_time_steps() is not updating because passed time step values are NULL.'
          return None
      executive = algorithm.GetExecutive()
      oi = executive.GetOutputInformation(0)
      # oi = outInfo.GetInformationObject(0)
      oi.Remove(executive.TIME_STEPS())
      oi.Remove(executive.TIME_RANGE())
      for t in timesteps:
          oi.Append(executive.TIME_STEPS(), t)
      oi.Append(executive.TIME_RANGE(), timesteps[0])
      oi.Append(executive.TIME_RANGE(), timesteps[-1])
      return timesteps
code_tokens: def update_time_steps ( algorithm , nt , dt = 1.0 , explicit = False ) : if explicit and isinstance ( nt , collections . Iterable ) : timesteps = nt else : if isinstance ( nt , collections . Iterable ) : nt = len ( nt ) timesteps = _calculate_time_range ( nt , dt = 1.0 ) if len ( timesteps ) < 1 : return None executive = algorithm . GetExecutive ( ) oi = executive . GetOutputInformation ( 0 ) oi . Remove ( executive . TIME_STEPS ( ) ) oi . Remove ( executive . TIME_RANGE ( ) ) for t in timesteps : oi . Append ( executive . TIME_STEPS ( ) , t ) oi . Append ( executive . TIME_RANGE ( ) , timesteps [ 0 ] ) oi . Append ( executive . TIME_RANGE ( ) , timesteps [ - 1 ] ) return timesteps
short_docstring: Handles setting up the timesteps on on the pipeline for a file series reader.
short_docstring_tokens: Handles setting up the timesteps on on the pipeline for a file series reader .
comment: """Handles setting up the timesteps on on the pipeline for a file series reader.
  
      Args:
          algorithm (vtkDataObject): The data object (Proxy) on the pipeline
              (pass `self` from algorithm subclasses)
          nt (int or list): Number of timesteps (Pass a list to use length of
              that list)
          dt (float): The discrete value in seconds for the time step.
          explicit (boolean): if true, this will treat the nt argument as the exact
              timestep values to use
  
      Return:
          numpy.array : Returns the timesteps as an array
      """$SEP$# NOTE: we may want to raise a warning here on the dev side.$SEP$#       if developing a new algorithm that uses this, you may want to$SEP$#       know exactly when this failse to update$SEP$#'update_time_steps() is not updating because passed time step values are NULL.'$SEP$# oi = outInfo.GetInformationObject(0)