JuliaNeuroscience / NIfTI.jl

Julia module for reading/writing NIfTI MRI files
Other
74 stars 34 forks source link

write to mmapped files on disk #34

Closed korbinian90 closed 4 years ago

korbinian90 commented 4 years ago

Additional optional argument for niread 'writeable'. When set to true, it is possible to write to mmapped files. Default behaviour is unchanged

New tests for writing to mmapped files. Garbage collection after the tests to close all inactive mmapped files, before removing them from disk.

Tokazama commented 4 years ago

It may be easier to just have the argument mode pass directly to open. We could keep the default as "r".

korbinian90 commented 4 years ago

Good idea! Now it's only a minimal change