예제 #1
0
 def recover(self):
     log.debug("OutDatabase recover()")
     adlist = []
     for i, ad in enumerate(self.adinput):
         ad = gemini_tools.obsmode_del(ad)
         ad = gemini_tools.read_database(
             ad, database_name=self.database_name, 
             input_name=self.tmpin_name[i], 
             output_name=ad.phu_get_key_value("ORIGNAME"))
         ad.filename = self.recover_name[i]
         adlist.append(ad)
     return adlist
예제 #2
0
 def recover(self):
     log.debug("OutAtList recover()")
     adlist = []
     for i, tmpname in enumerate(self.diskoutlist):
         ad = AstroData(tmpname, mode="update")
         ad.filename = self.ad_name[i]
         ad = gemini_tools.obsmode_del(ad)
         # Read the database back in, if it exists
         try:
             ad = gemini_tools.read_database(
                 ad, database_name=self.database_name, 
                 input_name=self.tmpin_name[i], 
                 output_name=ad.phu_get_key_value("ORIGNAME"))
         except:
             pass
         adlist.append(ad)
         log.fullinfo(tmpname + " was loaded into memory")
     return adlist