From 50931e92b56087c3a8a9a616fc5fe56ab4ac256f Mon Sep 17 00:00:00 2001 From: Nolan Nichols Date: Sun, 24 Aug 2014 16:15:14 -0700 Subject: [PATCH] fix: fully import BET --- niquery/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/niquery/app.py b/niquery/app.py index 5cfb08c..594d51e 100644 --- a/niquery/app.py +++ b/niquery/app.py @@ -61,6 +61,8 @@ def add(x, y): @celery.task(name='tasks.bet') def bet(in_file_uri): import nipype + from nipype.interfaces.fsl import BET + nipype.config.enable_provenance() fname = '/anatomy.nii.gz' @@ -72,7 +74,7 @@ def bet(in_file_uri): for chunk in response.iter_content(1024): fd.write(chunk) - bet = nipype.fsl.BET() + bet = BET() bet.inputs.in_file = os.path.abspath(fname) result = bet.run() return result.provenance.rdf().serialize(format='turtle')