parameters: (self)
return_statement: return '\n'.join(input_deck)
docstring: Return each line of the input deck stored in the file.
  
          Many SIERRA applications, when running a problem, will store the input
          deck within the results file.  This function retrieves that
          information, if it exists.  Note that due to format restriction, the
          retrieved input deck may not exactly match the original file.
  
          Example:
          >>> object = exomerge.import_model('results.e')
          >>> model.get_input_deck()
docstring_summary: Return each line of the input deck stored in the file.
docstring_tokens: Return each line of the input deck stored in the file .
function: def get_input_deck(self):
          """
          Return each line of the input deck stored in the file.
  
          Many SIERRA applications, when running a problem, will store the input
          deck within the results file.  This function retrieves that
          information, if it exists.  Note that due to format restriction, the
          retrieved input deck may not exactly match the original file.
  
          Example:
          >>> object = exomerge.import_model('results.e')
          >>> model.get_input_deck()
  
          """
          continuation = False
          input_deck = []
          begin_depth = 0
          first_word = None
          for line in self.info_records:
              if not continuation:
                  first_word = line.strip().split(' ', 1)[0].lower()
              if not continuation and first_word == 'begin':
                  begin_depth += 1
              if begin_depth > 0:
                  if continuation:
                      input_deck[-1] = input_deck[-1][:-1] + line
                  else:
                      input_deck.append(line)
              continuation = (begin_depth > 0 and len(line) == 80
                              and line[-1] == '\\')
              if not continuation and first_word == 'end':
                  begin_depth -= 1
          return '\n'.join(input_deck)
function_tokens: def get_input_deck ( self ) : continuation = False input_deck = [ ] begin_depth = 0 first_word = None for line in self . info_records : if not continuation : first_word = line . strip ( ) . split ( ' ' , 1 ) [ 0 ] . lower ( ) if not continuation and first_word == 'begin' : begin_depth += 1 if begin_depth > 0 : if continuation : input_deck [ - 1 ] = input_deck [ - 1 ] [ : - 1 ] + line else : input_deck . append ( line ) continuation = ( begin_depth > 0 and len ( line ) == 80 and line [ - 1 ] == '\\' ) if not continuation and first_word == 'end' : begin_depth -= 1 return '\n' . join ( input_deck )