ENH add_dig_points, SetChannelMixin, reorganization

This is WIP.

Adds function apply_dig_points to apply hpi, cardinal, and dig points to the Info.

Remove unnecessary import functions for np.loadtxt.

Needs test. Not ready for review
it is remnant of when the transformation was there.

-teon


Teon Brooks, Pre-hD
NSF Fellow, Chateaubriand Fellow
PhD Candidate
Department of Psychology
New York University

On Fri, Dec 5, 2014 at 4:36 PM, Christian Brodbeck <notifications@github.com
> wrote:

> In mne/io/kit/kit.py:
>
> > -                'coord_frame': FIFF.FIFFV_COORD_HEAD},
> > -               {'r': rpa, 'ident': FIFF.FIFFV_POINT_RPA,
> > -                'kind': FIFF.FIFFV_POINT_CARDINAL,
> > -                'coord_frame': FIFF.FIFFV_COORD_HEAD}]
> > -
> > -        for idx, point in enumerate(elp):
> > -            dig.append({'r': point, 'ident': idx, 'kind': FIFF.FIFFV_POINT_HPI,
> > -                        'coord_frame': FIFF.FIFFV_COORD_HEAD})
> > -
> > -        for idx, point in enumerate(hsp):
> > -            dig.append({'r': point, 'ident': idx,
> > -                        'kind': FIFF.FIFFV_POINT_EXTRA,
> > -                        'coord_frame': FIFF.FIFFV_COORD_HEAD})
> > +        point_names = ['nasion', 'lpa', 'rpa']
> > +        point_names.extend(['hpi', 'hpi', 'hpi', 'hpi', 'hpi'])
> > +        fid = np.vstack((fid, elp))
>
> Why concatenate something only to take it apart again later? Why make
> something simple complicated?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mne-tools/mne-python/pull/1677/files#r21378315>.
>