Skip to content

Commit

Permalink
fix: fully import BET
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholsn committed Aug 24, 2014
1 parent 2800728 commit 50931e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion niquery/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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')
Expand Down

0 comments on commit 50931e9

Please sign in to comment.