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
the default behavior is for unspecified points to get
kind=FIFF.FIFFV_POINT_EXTRA and elp or hpi points should get
kind=FIFF.FIFFV_POINT_HPI

-teon


Teon Brooks, Pre-hD
NSF Fellow, Chateaubriand Fellow
PhD Candidate
Department of Psychology
New York University

On Fri, Dec 5, 2014 at 5:01 PM, Christian Brodbeck <notifications@github.com
> wrote:

> In mne/io/kit/kit.py:
>
> > -                'kind': FIFF.FIFFV_POINT_CARDINAL,
> > -                '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})
> > +        fid_names = ['nasion', 'lpa', 'rpa']
> > +        elp_names = ['hpi', 'hpi', 'hpi', 'hpi', 'hpi']
>
> Also here, why make a detour with creating strings for naming points, when
> in fact we already know what those points correspond to?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mne-tools/mne-python/pull/1677/files#r21379905>.
>