How to use the b2luigi.LocalTarget function in b2luigi

To help you get started, we’ve selected a few b2luigi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nils-braun / b2luigi / tests / doc_examples / simple_example.py View on Github external
def output(self):
        return b2luigi.LocalTarget(f"results/output_file_{self.some_parameter}.txt")
github nils-braun / b2luigi / b2luigi / basf2_helper / data.py View on Github external
def output(self):
        yield {"raw_output.root": b2luigi.LocalTarget(_build_data_path(self))}
github nils-braun / b2luigi / b2luigi / basf2_helper / targets.py View on Github external
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
github nils-braun / b2luigi / b2luigi / basf2_helper / data.py View on Github external
def output(self):
        yield {"output.root": b2luigi.LocalTarget(_build_data_path(self))}