argiope/models.py
def run_postproc(self):
    """
    Runs the post-proc script.
    """
    t0 = time.time()
    if self.verbose: 
      print('#### POST-PROCESSING "{0}" USING POST-PROCESSOR "{1}"'.format(self.label, 
                                               self.solver.upper()))  
    if self.solver == "abaqus":
      command = '{0} viewer noGUI={1}_abqpp.py'.format(self.solver_path, self.label)
      process = subprocess.Popen( 
                command, 
                cwd    = self.workdir,
                shell  = True,
                stdout = subprocess.PIPE,
                stderr = subprocess.STDOUT)
      
      for line in iter(process.stdout.readline, b''):
         line = line.rstrip().decode('utf8')
         print("    ", line)
    t1 = time.time()
    if self.verbose: 
      print('  => POST-PROCESSED {0}: DURATION = {1:.2f}s >'.format(self.label, 
                                                                  t1 - t0))
def run_postproc(self):
    """
    Runs the post-proc script.
    """
    t0 = time.time()
    if self.verbose: 
      print('#### POST-PROCESSING "{0}" USING POST-PROCESSOR "{1}"'.format(self.label, 
                                               self.solver.upper()))  
    if self.solver == "abaqus":
      command = '{0} viewer noGUI={1}_abqpp.py'.format(self.solver_path, self.label)
      process = subprocess.Popen( 
                command, 
                cwd    = self.workdir,
                shell  = True,
                stdout = subprocess.PIPE,
                stderr = subprocess.STDOUT)
      
      for line in iter(process.stdout.readline, b''):
         line = line.rstrip().decode('utf8')
         print("    ", line)
    t1 = time.time()
    if self.verbose: 
      print('  => POST-PROCESSED {0}: DURATION = {1:.2f}s >'.format(self.label, 
                                                                  t1 - t0))
def run_postproc ( self ) : t0 = time . time ( ) if self . verbose : print ( '#### POST-PROCESSING "{0}" USING POST-PROCESSOR "{1}"'. f ormat( s elf. l abel, self . solver . upper ( ) ) ) if self . solver == "abaqus" : command = '{0} viewer noGUI={1}_abqpp.py' . format ( self . solver_path , self . label ) process = subprocess . Popen ( command , cwd = self . workdir , shell = True , stdout = subprocess . PIPE , stderr = subprocess . STDOUT ) for line in iter ( process . stdout . readline , b'' ) : line = line . rstrip ( ) . decode ( 'utf8' ) print ( "    " , line ) t1 = time . time ( ) if self . verbose : print ( '  => POST-PROCESSED {0}: DURATION = {1:.2f}s >' . format ( self . label , t1 - t0 ) )
Runs the post-proc script.
Runs the post - proc script .