# wrong meg channel

**URL:** <https://mne.discourse.group/t/wrong-meg-channel/4709>\
**Category:** Support & Discussions\
**Tags:** meg\
**Created:** [April 14, 2022, 9:31am UTC](https://mne.discourse.group/t/wrong-meg-channel/4709 "2022-04-14T09:31:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [April 14, 2022, 11:39am UTC](https://mne.discourse.group/t/wrong-meg-channel/4709/4 "2022-04-14T11:39:07Z")

</div>

I guess the documentation could be updated. Could you open an issue on the [GitHub issue tracker](https://github.com/mne-tools/mne-python/issues)?  
It does seems to work as intended:

```python
import mne
import numpy as np

data = np.random.randint(0, 10, size=90).reshape((3, 30))
info = mne.create_info(['1', '2', '3'], 1000, ch_types=['mag', 'grad', 'grad'])
raw = mne.io.RawArray(data, info)
raw.set_channel_types({'1': 'grad', '2': 'mag', '3': 'mag'})

```

Before: `chs: 1 Magnetometers, 2 Gradiometers`  
After: `chs: 1 Gradiometers, 2 Magnetometers`

---

_[View the full topic](https://mne.discourse.group/t/wrong-meg-channel/4709)._
