<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Matthew,</div><div><br><blockquote type="cite"><div>git clone git://git.debian.org/pkg-exppsy/pynifti.git<br>cd pynifti/<br>git checkout -b souheil/brifti origin/mb/brifti<br><br></div></blockquote><div><br></div><div>I can't believe that I just got suckered into installing git :-)</div><div>I'll look into the code and see if I can figure out what's going on.</div><br><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font>Yes, that's the thing that's waiting to happen... If an example<br>script comes to you, then send it - that would help. For now, have a<br>look again at:<br><br><a href="https://cirl.berkeley.edu/mb312/pyniftidocs/design.html">https://cirl.berkeley.edu/mb312/pyniftidocs/design.html</a><br><br>- I've tried to add something to describe your case at the end...<br></div></blockquote></div><br><div>Looks good. Thanks.</div><div><br></div><div>It's going to take me quite a while to understand how to do multi-processor or cluster computation in python. I'm hoping to make a big push this summer. I'll let you know if I come up with something useful.</div><div><br></div><div>For now though, I believe that the simplest thing would be to have something for memory mapped writing that is similar to the way that memory mapped reading works now. Schematically maybe something like this (I'm thinking of stupidly parallel apps where all parameters are known ahead of time):</div><div>1) set up the header like in the empty file case</div><div>2) initialize the shared memory file with zeros</div><div>3) Then as long as whatever dispatches the computation pieces knows what it is doing, it can do random access writes to the array using the memory mapped numpy array.</div><div><br></div><div>Someone who has thought about memory mapping files and/or parallel computing in python might have something more intelligent to say about this.</div><div><br></div><div>Cheers,</div><div>Souheil</div></body></html>