File tree Expand file tree Collapse file tree 3 files changed +6
-19
lines changed Expand file tree Collapse file tree 3 files changed +6
-19
lines changed Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
3
- # vi: set ft=python sts=4 ts=4 sw=4 et:
4
1
"""
2
+ Change directory to provide relative paths for doctests
3
+ >>> import os
4
+ >>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
5
+ >>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
6
+ >>> os.chdir(datadir)
7
+
5
8
Nipype interface for PETPVC.
6
9
7
10
PETPVC is a software from the Nuclear Medicine Department
@@ -217,19 +220,3 @@ def _gen_filename(self, name):
217
220
if name == 'out_file' :
218
221
return self ._list_outputs ()['out_file' ]
219
222
return None
220
-
221
-
222
- if __name__ == '__main__' :
223
-
224
- #from .testing import example_data
225
- #TODO get data for PETPVC
226
-
227
- pvc = PETPVC ()
228
- pvc .inputs .in_file = example_data ('pet.nii.gz' )
229
- pvc .inputs .mask_file = example_data ('tissues.nii.gz' )
230
- pvc .inputs .out_file = 'pet_pvc_rbv.nii.gz'
231
- pvc .inputs .pvc = 'RBV'
232
- pvc .inputs .fwhm_x = 2.0
233
- pvc .inputs .fwhm_y = 2.0
234
- pvc .inputs .fwhm_z = 2.0
235
- pvc .run ()
You can’t perform that action at this time.
0 commit comments