it makes the newly created class fully inherit the dict classes features by calling the dicts constructor with 'self' and all arguments passed to bunch.

On 12.02.2013, at 06:33, Teon <notifications@github.com> wrote:

> In mne/fiff/kit/constants.py:
> 
> > +# parameters
> > +KIT.DYNAMIC_RANGE = 2 ** 12 / 2  # signed integer. range +/- 2048
> > +KIT.VOLTAGE_RANGE = 5.
> > +KIT.CALIB_FACTOR = 1.0  # mne_manual p.272
> > +KIT.RANGE = 1.  # mne_manual p.272
> > +KIT.UNIT_MUL = 0  # default is 0 mne_manual p.273
> > +
> > +# gain: 0:x1, 1:x2, 2:x5, 3:x10, 4:x20, 5:x50, 6:x100, 7:x200
> > +KIT.GAINS = [1, 2, 5, 10, 20, 50, 100, 200]
> > +
> > +# coreg constants
> > +KIT.DIG_POINTS = 10000
> > +
> > +# create system specific dicts
> > +KIT_NY = deepcopy(KIT)
> > +KIT_NY.__dict__ = KIT_NY
> This doesn't work for me. I am curious, what does this line in mne.fiff.constants.Bunch do?
> 
> dict.__init__(self, kwargs)
> 
> —
> Reply to this email directly or view it on GitHub.
>