Exemplo n.º 1
0
 def output(self):
     """Output for the task."""
     try:
         src_path = self.pattern.value % (self.h, self.D)
     except TypeError:
         print('Source is not formattable: %s. Continue without parameter.'
               % self.pattern.value)
         src_path = self.pattern.value
     return CachedTarget(
         LocalTarget(src_path, service=JsonService)
     )
Exemplo n.º 2
0
 def output(self):
     path = self.out_dir.value + self.__taskid__() + '.json'
     return CachedTarget(LocalTarget(path, service=JsonService))
Exemplo n.º 3
0
 def output(self):
     path = self.out_dir.value + self.__taskid__() + '.pickle'
     return CachedTarget(LocalTarget(path, service=NetworkXService))