def parse(self, cmd_args): self.args = self.ap.parse_args(cmd_args) if self.args.cfg: self.cfg = Inifile.load(self.args.cfg) else: soln = NativeReader(self.args.soln) self.cfg = Inifile(soln['config'])
def process_restart(args): mesh = read_pyfr_data(args.mesh) soln = read_pyfr_data(args.soln) # Ensure the solution is from the mesh we are using if soln['mesh_uuid'] != mesh['mesh_uuid']: raise RuntimeError('Invalid solution for mesh.') # Process the config file if args.cfg: cfg = Inifile.load(args.cfg) else: cfg = Inifile(soln['config']) return mesh, soln, cfg
def process_restart(args): mesh = read_pyfr_data(args.mesh) soln = read_pyfr_data(args.soln) # Ensure the solution is from the mesh we are using if soln['mesh_uuid'] != mesh['mesh_uuid']: raise RuntimeError('Invalid solution for mesh.') # Process the config file if args.cfg: cfg = Inifile.load(args.cfg) else: cfg = Inifile(soln['config']) return mesh, soln, cfg
def process_restart(args): mesh = NativeReader(args.mesh) soln = NativeReader(args.soln) # Ensure the solution is from the mesh we are using if soln['mesh_uuid'] != mesh['mesh_uuid']: raise RuntimeError('Invalid solution for mesh.') # Process the config file if args.cfg: cfg = Inifile.load(args.cfg) else: cfg = Inifile(soln['config']) _process_common(args, mesh, soln, cfg)
def process_restart(args): mesh = NativeReader(args.mesh) soln = NativeReader(args.soln) # Ensure the solution is from the mesh we are using if soln['mesh_uuid'] != mesh['mesh_uuid']: raise RuntimeError('Invalid solution for mesh.') # Process the config file if args.cfg: cfg = Inifile.load(args.cfg) else: cfg = Inifile(soln['config']) _process_common(args, mesh, soln, cfg)
def process_restart(args): mesh = read_pyfr_data(args.mesh) soln = read_pyfr_data(args.soln) # Ensure the solution is from the mesh we are using if soln["mesh_uuid"] != mesh["mesh_uuid"]: raise RuntimeError("Invalid solution for mesh.") # Process the config file if args.cfg: cfg = Inifile.load(args.cfg) else: cfg = Inifile(soln["config"]) _process_common(args, mesh, soln, cfg)
def process_run(args): return read_pyfr_data(args.mesh), None, Inifile.load(args.cfg)
def process_run(args): return read_pyfr_data(args.mesh), None, Inifile.load(args.cfg)
def process_run(args): _process_common( args, NativeReader(args.mesh), None, Inifile.load(args.cfg) )
def process_run(args): _process_common( args, NativeReader(args.mesh), None, Inifile.load(args.cfg) )
def process_run(args): _process_common(args, read_pyfr_data(args.mesh), None, Inifile.load(args.cfg))