MabbottLab / MEGneto

MEG pipeline for Mabbott Lab data processing.
GNU General Public License v3.0
0 stars 0 forks source link

Files fail to save directly to network from MATLAB #139

Closed j-tseng closed 1 week ago

j-tseng commented 3 years ago

Affected files:

fcp_4_beamforming_tmplGrid.m

fcp_5_taskconnectivity_localSave.m

make_NBS_ready.m

After NBS

So there's a mixture of size actually, maybe the error isn't directly related to size? Could be the nature of what's being written to file perhaps?

j-tseng commented 3 years ago

Weird. I tried every variant and somehow ended up breaking MATLAB's interpretation of the filepaths. isfolder(...) works on the symbolic link, but attempting to save to a location on there returns a "file/folder does not exist" error. Other errors that I've encountered include "unknown error" on movefile, saved but file may be corrupted and could not close...

It worked once by saving locally then using movefile, so really hard to find any logic behind why it would suddenly break. It just doesn't like the symbolic links and network locations.

j-tseng commented 1 week ago

we started using network fileshares as data and outputs storage and using built-in nautilus mount tools would cause issues when the /run/user/gvfs locations were adopted (it would include symbols like : and \). instead, use a /etc/fstab approach for mounting - much more stable when saving things.