parameters: (self, results=None)
docstring: Imports simulation resuts into results object.
docstring_summary: Imports simulation resuts into results object.
docstring_tokens: Imports simulation resuts into results object .
function: def import_results(self, results=None):
          """
          Imports simulation resuts into results object.
          """
          print 'import_results'
  
          # first a dict is created with available dataname as key
          # and filepath as value
  
          # with this dict, the import_xml method of results
          # is called, where the files are parsed for specific data
  
          if results is None:
              results = self._results
              if results is None:
                  results = self.parent.simulation.results
  
          if results is not None:
  
              resultfilepaths = {}
              if self.is_edgedata:
                  if os.path.isfile(self.edgedatapath):
                      resultfilepaths['edgedatapath'] = self.edgedatapath
  
              if self.is_edgenoise:
                  if os.path.isfile(self.edgenoisepath):
                      resultfilepaths['edgenoisepath'] = self.edgenoisepath
  
              if self.is_edgesemissions:
                  if os.path.isfile(self.edgeemissionspath):
                      resultfilepaths['edgeemissionspath'] = self.edgeemissionspath
  
              if self.is_routedata:
                  if os.path.isfile(self.routesdatapath):
                      resultfilepaths['routesdatapath'] = self.routesdatapath
  
              if self.is_tripdata:
                  if os.path.isfile(self.tripdatapath):
                      resultfilepaths['tripdatapath'] = self.tripdatapath
  
              if self.is_electricenergy:
                  if os.path.isfile(self.electricenergypath):
                      resultfilepaths['electricenergypath'] = self.electricenergypath
  
              if self.is_fcd:
                  if os.path.isfile(self.filepath_output_fcd):
                      resultfilepaths['trajectorypath'] = self.filepath_output_fcd
  
              if len(resultfilepaths) > 0:
                  results.import_xml(self, **resultfilepaths)
function_tokens: def import_results ( self , results = None ) : print 'import_results' # first a dict is created with available dataname as key # and filepath as value # with this dict, the import_xml method of results # is called, where the files are parsed for specific data if results is None : results = self . _results if results is None : results = self . parent . simulation . results if results is not None : resultfilepaths = { } if self . is_edgedata : if os . path . isfile ( self . edgedatapath ) : resultfilepaths [ 'edgedatapath' ] = self . edgedatapath if self . is_edgenoise : if os . path . isfile ( self . edgenoisepath ) : resultfilepaths [ 'edgenoisepath' ] = self . edgenoisepath if self . is_edgesemissions : if os . path . isfile ( self . edgeemissionspath ) : resultfilepaths [ 'edgeemissionspath' ] = self . edgeemissionspath if self . is_routedata : if os . path . isfile ( self . routesdatapath ) : resultfilepaths [ 'routesdatapath' ] = self . routesdatapath if self . is_tripdata : if os . path . isfile ( self . tripdatapath ) : resultfilepaths [ 'tripdatapath' ] = self . tripdatapath if self . is_electricenergy : if os . path . isfile ( self . electricenergypath ) : resultfilepaths [ 'electricenergypath' ] = self . electricenergypath if self . is_fcd : if os . path . isfile ( self . filepath_output_fcd ) : resultfilepaths [ 'trajectorypath' ] = self . filepath_output_fcd if len ( resultfilepaths ) > 0 : results . import_xml ( self , * * resultfilepaths )