Skip to content

Commit 84aae35

Browse files
Add portable persistent Raw preload cache
1 parent b530f62 commit 84aae35

12 files changed

Lines changed: 1523 additions & 27 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Speed up repeated preloading of uncompressed FIF, EDF/BDF, and BrainVision
2+
recordings with a persistent copy-on-write decoded-data cache, by `Bruno Aristimunha`_.

mne/channels/channels.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ def add_channels(self, add_list, force_update_info=False):
748748
# Now update the attributes
749749
if (
750750
isinstance(self._data, np.memmap)
751+
and self._data.mode != "c"
751752
and con_axis == 0
752753
and sys.platform != "darwin"
753754
): # resizing not available--no mremap

0 commit comments

Comments
 (0)