Skip to content

Instantly share code, notes, and snippets.

@samuell
Last active June 17, 2020 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuell/5d1183b41182b6e24d8bb3e3a8fbec4d to your computer and use it in GitHub Desktop.
Save samuell/5d1183b41182b6e24d8bb3e3a8fbec4d to your computer and use it in GitHub Desktop.
import luigi
import sciluigi as sl
# ... snip ...
class GlobFiles(sl.Task):
globdir = luigi.Parameter()
in_depend = None
def out_globbed(self):
globbed_files = [sl.TargetInfo(self, globbed_path) for globbed_path in glob.glob(path.join(self.globdir, '*'))]
return globbed_files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment