original_docstring: 
          Show the results for the current simulation in a table for easy visualization
          
docstring: Show the results for the current simulation in a table for easy visualization
docstring_tokens: Show the results for the current simulation in a table for easy visualization
code: def showResults(self):
  
          """
          Show the results for the current simulation in a table for easy visualization
          """
  
          assert self.output != None, "\nShould run the simulation prior to showing results."
  
          if self.configurations['is_dynamic'] == True:
  
              # Dynamic output. Output is a tuple (time_points, Y)
  
              time_points, Y = self.output
  
              header = '\nResult summary:\n'
  
              tab = prettytable.PrettyTable()
  
              tab.field_names = self.configurations['output_headers']
  
              for i in range(len(time_points)):
                  tab.add_row(np.concatenate(([time_points[i]], Y[i, :])))
  
              print(header + str(tab))
  
          else:
  
              header = '\nResult summary:\n'
  
              tab = prettytable.PrettyTable()
  
              tab.field_names = ["Variable", "Unit", "Value"]
  
              for var_i in list(self.output.keys()):
                  tab.add_row([str(var_i),
                               str(self.problem.equation_block.variable_dict[str(var_i)].units),
                               self.output[var_i]
                               ]
                              )
  
              print(header + str(tab))
code_tokens: def showResults ( self ) : assert self . output != None , "\nShould run the simulation prior to showing results." if self . configurations [ 'is_dynamic' ] == True : time_points , Y = self . output header = '\nResult summary:\n' tab = prettytable . PrettyTable ( ) tab . field_names = self . configurations [ 'output_headers' ] for i in range ( len ( time_points ) ) : tab . add_row ( np . concatenate ( ( [ time_points [ i ] ] , Y [ i , : ] ) ) ) print ( header + str ( tab ) ) else : header = '\nResult summary:\n' tab = prettytable . PrettyTable ( ) tab . field_names = [ "Variable" , "Unit" , "Value" ] for var_i in list ( self . output . keys ( ) ) : tab . add_row ( [ str ( var_i ) , str ( self . problem . equation_block . variable_dict [ str ( var_i ) ] . units ) , self . output [ var_i ] ] ) print ( header + str ( tab ) )
short_docstring: Show the results for the current simulation in a table for easy visualization
short_docstring_tokens: Show the results for the current simulation in a table for easy visualization
comment: """
          Show the results for the current simulation in a table for easy visualization
          """$SEP$# Dynamic output. Output is a tuple (time_points, Y)