# Mne MASS database

**URL:** <https://mne.discourse.group/t/mne-mass-database/2455>\
**Category:** Support & Discussions\
**Tags:** eeg, machine-learning\
**Created:** [January 8, 2021, 2:55pm UTC](https://mne.discourse.group/t/mne-mass-database/2455 "2021-01-08T14:55:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![t\_mne2021](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@t\_mne2021](https://mne.discourse.group/u/t_mne2021)\
**Post date:** [January 8, 2021, 2:55pm UTC](https://mne.discourse.group/t/mne-mass-database/2455/1 "2021-01-08T14:55:09Z")

</div>

Has anyone used MNE to read the MASS database (Montreal Archive of Sleep Studies)? Because the oneset of the MASS database is not an integer. Therefore, errors often occur in the alignment of labels and data.

---

<div class="post-metadata">

**Author:** ![agramfort](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@agramfort](https://mne.discourse.group/u/agramfort)\
**Post date:** [January 8, 2021, 5:04pm UTC](https://mne.discourse.group/t/mne-mass-database/2455/2 "2021-01-08T17:04:20Z")

</div>

what MASS file are you trying to read? I have the data. Can you just share a code snippet?

Alex

---

<div class="post-metadata">

**Author:** ![t\_mne2021](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@t\_mne2021](https://mne.discourse.group/u/t_mne2021)\
**Post date:** [January 9, 2021, 2:03am UTC](https://mne.discourse.group/t/mne-mass-database/2455/3 "2021-01-09T02:03:15Z")

</div>

Although I have loaded the data using python, I think there is a problem with the alignment of the data points. In fact, I think the time stamp of the data and labels in the original file is not perfect, but many people ignore this.

Alexandre Gramfort via MNE Forum \<[mne@discoursemail.com](mailto:mne@discoursemail.com)\> 于2021年1月9日周六 上午1:14写道：

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [January 9, 2021, 6:44am UTC](https://mne.discourse.group/t/mne-mass-database/2455/4 "2021-01-09T06:44:48Z")

</div>

Hello @t_mne2021, which files are those, specifically? And how exactly do you load them?

---

<div class="post-metadata">

**Author:** ![agramfort](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@agramfort](https://mne.discourse.group/u/agramfort)\
**Post date:** [January 9, 2021, 11:03am UTC](https://mne.discourse.group/t/mne-mass-database/2455/5 "2021-01-09T11:03:26Z")

</div>

@t_mne2021 can you be more explicit?

Alex
