Wizard-like function to get a SurfaceSpec instance from any kind of reasonable input.


*args: one or multiple arguments.

If one argument and a SurfaceSpec, this is returned immediately. If one argument and the name of a file, it returns the contents of the file. Otherwise each argument may refer to a path, a hemisphere (if one of ‘l’,’r’,’b’,’m’, optionally followed by the string ‘h’), a suffix, or an int (this is interpreted as icold); these elments are used to construct a canonical filename using afni_suma_spec.canonical_filename whose result is returned.


spec: SurfaceSpec

spec as defined by parameters (if it is found)