예제 #1
0
 def __stage_in_data_units(self, input_data=[], target_directory="."):
     """ stage in data units specified in input_data field """
     logger.debug("Stage in input files to: %s" % target_directory)
     for i in input_data:
         #pd_url = self.__get_pd_url(i)
         #du_id = self.__get_du_id(i)
         #pd = PilotData(pd_url=pd_url)
         #du = pd.get_du(du_id)
         #du.export(target_directory)
         du = DataUnit(du_url=i)
         du.wait()
         du.export(target_directory)
예제 #2
0
 def __stage_in_data_units(self, input_data=[], target_directory="."):
     """ stage in data units specified in input_data field """
     try:
         logger.debug("Stage in input files to: %s" % target_directory)
         for i in input_data:
             du = DataUnit(du_url=i)
             logger.debug("Restored DU... call get state()")
             logger.debug("DU State: " + du.get_state())
             du.wait()
             logger.debug("Reconnected to DU. Exporting it now...")
             du.export(target_directory)
     except:
         logger.error("Stage-in of files failed.")
         self.__print_traceback()
예제 #3
0
 def __stage_in_data_units(self, input_data=[], target_directory="."):
     """ stage in data units specified in input_data field """
     try:
         logger.debug("Stage in input files to: %s"%target_directory)
         for i in input_data:
             du = DataUnit(du_url=i)
             logger.debug("Restored DU... call get state()")
             logger.debug("DU State: " + du.get_state())
             du.wait()
             logger.debug("Reconnected to DU. Exporting it now...")
             du.export(target_directory)
     except:
         logger.error("Stage-in of files failed.")
         self.__print_traceback()