Hello,
I am trying to run align_epi_anat.py and encountering the following error. I tried to look it up in the actual Python script, but haven't been able to figure out what it's getting at (My optional arguments seem okay to me. I'm not sure what "trailers" would mean.) Any guidance would be hugely appreciated. Thanks.
The error:
File "/Users/.../abin/align_epi_anat.py", line 1170
print(‘** ERROR: seem to have trailers, but cannot find them!’)
The shell script
align_epi_anat.py -anat ANAT.bc.ns+orig \
-epi EPIREF4ANAT.ns.nii \
-epi_base 0 -anat2epi -anat_has_skull no \
-deoblique on \
-epi_strip None -partial_coverage \
-giant_move \
-master_anat SOURCE -overwrite
The offending line in the Python script:
def get_user_opts(self):
self.valid_opts.check_special_opts(sys.argv) #ZSS March 2014
self.user_opts = read_options(sys.argv, self.valid_opts)
if self.user_opts == None: return 1 #bad
# no options: apply -help
if ( len(self.user_opts.olist) == 0 or \
len(sys.argv) <= 1 ) :
ps.self_help()
ps.ciao(0) # terminate
if self.user_opts.trailers:
opt = self.user_opts.find_opt('trailers')
if not opt:
print "** ERROR: seem to have trailers, but cannot find them!"