# Split file saving doesn't work

**URL:** <https://mne.discourse.group/t/split-file-saving-doesnt-work/2184>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [May 6, 2020, 12:12pm UTC](https://mne.discourse.group/t/split-file-saving-doesnt-work/2184 "2020-05-06T12:12:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 6, 2020, 12:12pm UTC](https://mne.discourse.group/t/split-file-saving-doesnt-work/2184/1 "2020-05-06T12:12:47Z")

</div>

External Email - Use Caution

Dear list

Every now and then I cannot save my epochs objects due to this error.  
This happens only for one of my subjects (out of thirty) and only on one  
particular (bandpass filtered and hilbert transformed) raw file. I have  
tried both the development version and newest stable version.

I guess it should take care of it automatically as I didn't change the  
default split size of 2GB of epochs\_hilbert.save()

All the best

Lau

-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200506/c26b5c43/attachment-0001.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200506/c26b5c43/attachment-0001.html)  
-------------- next part --------------  
A non-text attachment was scrubbed...  
Name: jopebdpemhbdokdd.png  
Type: image/png  
Size: 85241 bytes  
Desc: not available  
Url : [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200506/c26b5c43/attachment-0001.png](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200506/c26b5c43/attachment-0001.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 6, 2020, 12:50pm UTC](https://mne.discourse.group/t/split-file-saving-doesnt-work/2184/2 "2020-05-06T12:50:40Z")

</div>

External Email - Use Caution

hi Lau,

please open an issue and make the file available.

you can save it in .h5 format so we can debug the fif IO

Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 6, 2020, 3:17pm UTC](https://mne.discourse.group/t/split-file-saving-doesnt-work/2184/3 "2020-05-06T15:17:41Z")

</div>

External Email - Use Caution

I suspect I understand why this can happen from the code -- we calculate  
the splits using just the size of the actual data, but end up writing that  
plus other things (drop log, metadata, etc.) which can push it beyond the  
2GB limit. For now you can do something like `split_size='1.9GB'` to work  
around the problem, but hopefully we can cook up a proper fix for it soon.

Eric

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 7, 2020, 7:07am UTC](https://mne.discourse.group/t/split-file-saving-doesnt-work/2184/4 "2020-05-07T07:07:18Z")

</div>

External Email - Use Caution

Hi Eric

That actually make the trick, so it is likely it is as you describe.  
Thanks a lot for your suggestion!

@Alex: are you still interested in having an anonymous copy of the file?

All the best

Lau

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 7, 2020, 7:13am UTC](https://mne.discourse.group/t/split-file-saving-doesnt-work/2184/5 "2020-05-07T07:13:58Z")

</div>

External Email - Use Caution

> @Alex: are you still interested in having an anonymous copy of the file?

no need. Just confirm that the fix from Eric

> <https://github.com/mne-tools/mne-python/pull/7740>
>
> From the mailing list.

does the job.

Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 7, 2020, 3:28pm UTC](https://mne.discourse.group/t/split-file-saving-doesnt-work/2184/6 "2020-05-07T15:28:15Z")

</div>

External Email - Use Caution

it indeed fixed my issue - thanks for your quick response!
