pnlbwh / pnlpipe

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

print( ) vs print ' ' #6

Closed tashrifbillah closed 6 years ago

tashrifbillah commented 6 years ago

Since pnlpipe3 uses python3.6, we need to modify the following print statements. I can do it using sed, yet would like to check with you first.

axisAlign.py:            print '* Changing to working dir %s' % tmpdir
axisAlign.py:    #print cmd
axisAlign.py:    print "* " + cmd
axisAlign.py:        print line,
axisAlign.py:        print image_in + ' doesn\'t exist'
axisAlign.py:        #print image_in + ' is not a valid nrrd'
axisAlign.py:        print args.outfile + ' already exists.'
axisAlign.py:        print 'Delete it first.'
axisAlign.py:        print image_in + ' has dimension %s, needs to be 3 or 4' % dim
measuretracts/getTensorData.py:    print "Reading " + filename
measuretracts/getTensorData.py:    print 'npoints:', output.GetNumberOfPoints()
measuretracts/getTensorData.py:    print 'ncells:', output.GetNumberOfCells()
measuretracts/getTensorData.py:    print 'nscalars:', reader.GetNumberOfScalarsInFile()
measuretracts/getTensorData.py:    print 'ntensors:', reader.GetNumberOfTensorsInFile()
measuretracts/getTensorData.py:    print 'ScalarName:', reader.GetScalarsNameInFile(0)
measuretracts/getTensorData.py:    print 'TensorName:', reader.GetTensorsNameInFile(0)
measuretracts/getTensorData.py:        print "Cannot find tensors in %s" % filename
measuretracts/getTensorData.py:        print get_all_tensors(test_vtk_file)
measuretracts/getTensorData.py:        print len(get_all_tensors(test_vtk_file))
measuretracts/measureTracts.py:            print "sorry, no file found at" + args.files[fileNum]
measuretracts/measureTracts.py:        print "The file " + args.fileName + " already exists. Are you sure you want to append? [y/n]"
measuretracts/measureTracts.py:        print "Sorry, but the file output name you've entered is already the name of a directory. Please rerun with a different output name"
measuretracts/measureTracts.py:        print "Please enter an output with extension .csv"
measuretracts/measureTracts.py:    #print names, values
measuretracts/measureTractsFunctions.py:#print "Enter the file name you want to import"
measuretracts/measureTractsFunctions.py:    print "Computing the following measures"
measuretracts/measureTractsFunctions.py:    print ','.join(measureTags)
measuretracts/measureTractsFunctions.py:        print "Finished computing measures for '%s'\n" % node
measuretracts/measureTractsFunctions.py:    print "Made " + fileName
old/util.sh:    cases=$(cat "$caselist" | awk '{print $1}')
util.sh:    cases=$(cat "$caselist" | awk '{print $1}')
(pnlpipe) [tb571@pnl-z840-2 pnlscripts]$
tashrifbillah commented 6 years ago

Replaced all to comply with python3.6