AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
April 17, 2018 01:12PM
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!"
Subject Author Posted

Align_epi_anat.py : error message

rbacker432 April 17, 2018 01:12PM

Re: Align_epi_anat.py : error message

Daniel Glen April 17, 2018 02:06PM

Re: Align_epi_anat.py : error message

rbacker432 April 17, 2018 02:23PM

Re: Align_epi_anat.py : error message

Daniel Glen April 17, 2018 03:41PM

Re: Align_epi_anat.py : error message

rbacker432 April 17, 2018 05:01PM

Re: Align_epi_anat.py : error message

dowdlelt April 17, 2018 05:15PM

Re: Align_epi_anat.py : error message

rick reynolds April 18, 2018 10:22AM

Re: Align_epi_anat.py : error message

rbacker432 April 18, 2018 10:48AM

Re: Align_epi_anat.py : error message

rick reynolds April 18, 2018 11:11AM

Re: Align_epi_anat.py : error message

rbacker432 April 18, 2018 03:05PM

Re: Align_epi_anat.py : error message

rbacker432 April 19, 2018 03:37PM

Re: Align_epi_anat.py : error message

ptaylor April 17, 2018 04:08PM