parameters: (self, timesteps)
docstring: Delete one or more timesteps.
  
          Because fields are defined on each timestep, this also deletes field
          values for the corresponding timestep.
  
          Examples:
          >>> model.delete_timestep(0.0)
          >>> model.delete_timestep('all')
docstring_summary: Delete one or more timesteps.
docstring_tokens: Delete one or more timesteps .
function: def delete_timestep(self, timesteps):
          """
          Delete one or more timesteps.
  
          Because fields are defined on each timestep, this also deletes field
          values for the corresponding timestep.
  
          Examples:
          >>> model.delete_timestep(0.0)
          >>> model.delete_timestep('all')
  
          """
          timesteps = self._format_id_list(timesteps, self.get_timesteps(),
                                           'timestep')
          # get list of deleted indices in descending order
          deleted_indices = reversed(
              sorted([self.timesteps.index(x) for x in timesteps]))
          for index in deleted_indices:
              # process element fields
              for element_block_id in self.get_element_block_ids():
                  fields = self._get_element_block_fields(element_block_id)
                  for values in list(fields.values()):
                      del values[index]
              # process node fields
              for values in list(self.node_fields.values()):
                  del values[index]
              # process side set fields
              for side_set_id in self.get_side_set_ids():
                  fields = self._get_side_set_fields(side_set_id)
                  for values in list(fields.values()):
                      del values[index]
              # process node set fields
              for node_set_id in self.get_node_set_ids():
                  fields = self._get_node_set_fields(node_set_id)
                  for values in list(fields.values()):
                      del values[index]
              # process global variables
              for values in list(self.global_variables.values()):
                  del values[index]
              # delete the timestep
              del self.timesteps[index]
function_tokens: def delete_timestep ( self , timesteps ) : timesteps = self . _format_id_list ( timesteps , self . get_timesteps ( ) , 'timestep' ) # get list of deleted indices in descending order deleted_indices = reversed ( sorted ( [ self . timesteps . index ( x ) for x in timesteps ] ) ) for index in deleted_indices : # process element fields for element_block_id in self . get_element_block_ids ( ) : fields = self . _get_element_block_fields ( element_block_id ) for values in list ( fields . values ( ) ) : del values [ index ] # process node fields for values in list ( self . node_fields . values ( ) ) : del values [ index ] # process side set fields for side_set_id in self . get_side_set_ids ( ) : fields = self . _get_side_set_fields ( side_set_id ) for values in list ( fields . values ( ) ) : del values [ index ] # process node set fields for node_set_id in self . get_node_set_ids ( ) : fields = self . _get_node_set_fields ( node_set_id ) for values in list ( fields . values ( ) ) : del values [ index ] # process global variables for values in list ( self . global_variables . values ( ) ) : del values [ index ] # delete the timestep del self . timesteps [ index ]