it would be nice if info['nchans'] would be read only and internally map to len(info['chs']). The same with info['ch_names'], which should map internally to [ch['name'] for ch in info['chs']]. This would reduce the chances of having inconsistent data and help with the DRY.
This would involve overwriting the __get_item__ and __set_item__ methods.
it would be nice if
info['nchans']would be read only and internally map tolen(info['chs']). The same withinfo['ch_names'], which should map internally to[ch['name'] for ch in info['chs']]. This would reduce the chances of having inconsistent data and help with the DRY.This would involve overwriting the
__get_item__and__set_item__methods.