Ok. maybe deepcopy is no good idea. what about new Bunches for KIT_AD / NY

Then use KIT_AD.update(KIT)

this should work and resolve the reference problem...

The other idea might be a more conceptual one:

KIT.AD_XX = 01234
KIT.AD_YY = 56789

just make subsections in KIT for sites instead of adding multiple bunches. ..

On 12.02.2013, at 01:49, Teon <notifications@github.com> wrote:

> In mne/fiff/kit/constants.py:
> 
> > +# amplifier information
> > +KIT.input_gain_bit = 11  # stored in Bit-11 to 12
> > +KIT.input_gain_mask = 6144  # (0x1800)
> > +KIT.output_gain_bit = 0  # stored in Bit-0 to 2
> > +KIT.output_gain_mask = 7  # (0x0007)
> > +# input_gain: 0:x1, 1:x2, 2:x5, 3:x10
> > +KIT.input_gains = [1, 2, 5, 10]
> > +# output_gain: 0:x1, 1:x2, 2:x5, 3:x10, 4:x20, 5:x50, 6:x100, 7:x200
> > +KIT.output_gains = [1, 2, 5, 10, 20, 50, 100, 200]
> > +
> > +# coreg constants
> > +KIT.DIG_POINTS = 10000
> > +
> > +# create system specific dicts
> > +KIT_NY = KIT
> > +KIT_AD = KIT
> I'm having a problem with deep copy here. What happens is that the object is not created properly after it is done. The only way to get it to work with proper behavior is to redefine KIT.__dict__ = KIT. This does not seem like a good way to handle this. Any suggestions?
> 
> —
> Reply to this email directly or view it on GitHub.
>