nipy / mindboggle

Automated anatomical brain label/shape analysis software (+ website)
http://mindboggle.info
Other
145 stars 54 forks source link

argument ordering of read_vtk and write_vtk differ #58

Closed bcipolli closed 8 years ago

bcipolli commented 8 years ago

I would hope/expect that the order of values output by read_vtk allows them to be fed back to write_vtk. Instead,

faces, lines, indices, points, npoints, scalars, scalar_names, input_vtk = read_vtk(...)

def write_vtk(output_vtk, points, indices, lines, faces, scalars, scalar_names, scalar_type)

I would suggest changing one to match the other, so I can do:

vtk_data = read_vtk(filename)
# some manip of vtk_data
write_vtk(filename, *vtk_data[:-1])
binarybottle commented 8 years ago

Done -- please give it a try!

bcipolli commented 8 years ago

tested, works :+1: thanks!