Last active
June 17, 2020 15:07
-
-
Save samuell/5d1183b41182b6e24d8bb3e3a8fbec4d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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