Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def output(self):
return b2luigi.LocalTarget(f"results/output_file_{self.some_parameter}.txt")
def output(self):
yield {"raw_output.root": b2luigi.LocalTarget(_build_data_path(self))}
import b2luigi
class ROOTLocalTarget(b2luigi.LocalTarget):
def exists(self):
if not super().exists():
return False
path = self.path
import ROOT
tfile = ROOT.TFile.Open(path)
return tfile and len(tfile.GetListOfKeys()) > 0
def output(self):
yield {"output.root": b2luigi.LocalTarget(_build_data_path(self))}