コード例 #1
0
ファイル: extrapolate.py プロジェクト: pouyana/satgen
 def run(self):
     if(os.path.splitext(self.f)[1]==".xml" and not re.search("out",self.f)):
         db=DB("/home/poa32kc/Programs/satgen/satgen.db")
         object_id=db.get_sat_id_by_name(self.ex.get_name(self.f))
         args = shlex.split(self.command_line)
         CR = subprocess.call(args)
         from time import sleep
         sleep(1)
         config_tuple = self.ex.convert_to_tuple(object_id, ex.get_root()+self.f+"_out_sim.xml")    
         db.insert_final_state(config_tuple)
コード例 #2
0
ファイル: extrapolate.py プロジェクト: PlanetHunt/satgen
 def run(self):
     if(os.path.splitext(self.f)[1] == ".xml" and not re.search("out",
                                                                self.f)):
         db = DB(self.db)
         object_id = db.get_sat_id_by_name(self.ex.get_name(self.f))
         args = shlex.split(self.command_line)
         CR = subprocess.call(args)
         from time import sleep
         sleep(1)
         config_tuple = self.ex.convert_to_tuple(
             object_id, ex.get_root() + self.f + "_out_sim.xml")