aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-06-10 16:19:09 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-06-10 16:19:09 +0200
commit895765ffa6ca34b9cb08dd0bb76e43efecde80bd (patch)
tree3a42ce4be5f4f09dafe108c09b44e55d4cbf1787 /python
parent24f00c09b767ff1157b7e1548d938e18eb79dbf7 (diff)
downloadrefcat-895765ffa6ca34b9cb08dd0bb76e43efecde80bd.tar.gz
refcat-895765ffa6ca34b9cb08dd0bb76e43efecde80bd.zip
tasks: add stub
Diffstat (limited to 'python')
-rw-r--r--python/refcat/tasks.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/python/refcat/tasks.py b/python/refcat/tasks.py
index 692cc05..234fc11 100644
--- a/python/refcat/tasks.py
+++ b/python/refcat/tasks.py
@@ -1239,8 +1239,8 @@ class BrefSortedByWorkID(Refcat):
skate-map -B -m ff -x source_work_ident |
LC_ALL=C sort -T {tmpdir} -S25% -k1,1 --parallel 4 | zstd -c -T0 > {output}
""",
- tmpdir=self.tmpdir,
- bref=self.input().path)
+ tmpdir=self.tmpdir,
+ bref=self.input().path)
luigi.LocalTarget(output).move(self.output().path)
def output(self):
@@ -1276,6 +1276,17 @@ class BrefCombined(Refcat):
This is basically a reduce step, where we group by work id (since the raw
refs were already sorted by work id).
"""
+ def requires(self):
+ return {
+ "refs": RefsByWorkID(),
+ "matched": BrefSortedByWorkID(),
+ }
+
+ def run(self):
+ raise NotImplementedError('todo')
+
+ def output(self):
+ return luigi.LocalTarget(path=self.path(ext="json.zst"), format=Zstd)
#