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) )
def output(self): path = self.out_dir.value + self.__taskid__() + '.json' return CachedTarget(LocalTarget(path, service=JsonService))
def output(self): path = self.out_dir.value + self.__taskid__() + '.pickle' return CachedTarget(LocalTarget(path, service=NetworkXService))