aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-09-08 12:25:10 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-09-08 12:25:10 +0200
commit70d6297e064a06a4df0a6bb2ebc4b6029283efb8 (patch)
tree56bd6f2f7e932488bac242c4698c5bcccd34fb6f
parentfb6676de0fdc592bd067bd38a34fe4799f7dbb4f (diff)
downloadrefcat-70d6297e064a06a4df0a6bb2ebc4b6029283efb8.tar.gz
refcat-70d6297e064a06a4df0a6bb2ebc4b6029283efb8.zip
tasks: add missing import
-rw-r--r--python/refcat/techreport.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/python/refcat/techreport.py b/python/refcat/techreport.py
index 064e357..e23e151 100644
--- a/python/refcat/techreport.py
+++ b/python/refcat/techreport.py
@@ -1,8 +1,7 @@
-
"""
Tasks for techreport.
"""
-
+import luigi
from refcat.tasks import Refcat, OpenCitations
from refcat.base import shellout, Zstd
@@ -11,7 +10,6 @@ class COCIDOIOnly(Refcat):
"""
Extract DOI-DOI pair, order dois lexicographically.
"""
-
def requires(self):
return OpenCitations()
@@ -23,7 +21,8 @@ class COCIDOIOnly(Refcat):
cut -d , -f2,3 |
perl -F, -lane 'printf qq[%s\n], join ",", sort @F' |
zstd -c -T0 > {output}
- """, input=self.input().path)
+ """,
+ input=self.input().path)
luigi.LocalTarget(output).move(self.output().path)
def output(self):