pnlbwh / pnlpipe

A Python-based framework for processing anatomical (T1, T2) and diffusion weighted images
Other
12 stars 8 forks source link

SyntaxError: invalid syntax #3

Closed tashrifbillah closed 6 years ago

tashrifbillah commented 6 years ago
./dwi_motion_estimate_flirt.py -h
  File "./dwi_motion_estimate_flirt.py", line 17
    def load_transforms(path: str):
                            ^
SyntaxError: invalid syntax

It might be an incompatibility between Python 2 and 3.

tashrifbillah commented 6 years ago

I fixed the following issue. Now that our environment is python36, the above error doesn't happen anymore. Help message is showing correctly.

(pnlpipe3) [tb571@pnl-z840-2 pnlscripts]$ ./dwi_motion_estimate_flirt.py -h
  File "./dwi_motion_estimate_flirt.py", line 154
    action='store_true', required=False)
         ^
SyntaxError: invalid syntax

(There was a comma missing)

tashrifbillah commented 5 years ago

Looks like we ignored this resorting to Python 3. So, I guess we shall point Ofer to Python 3 other than trying to fix the headline issue.