<br><br><div class="gmail_quote">On Sat, Sep 22, 2012 at 11:31 AM, Gael Varoquaux <span dir="ltr"><<a href="mailto:gael.varoquaux@normalesup.org" target="_blank">gael.varoquaux@normalesup.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sat, Sep 22, 2012 at 11:16:27AM -0600, Charles R Harris wrote:<br>
>    I think this is a bug, taking a view should probably update the offset.<br>
<br>
</div>OK, we can include a fix for that alongside with the patch to keep track<br>
of the filename.<br></blockquote><div><br>It already tracks the file name<br><br><span style="font-family:courier new,monospace">In [1]: a = np.memmap('tmp.mmap', dtype=np.float64, shape=50, mode='w+', offset=4)<br>
<br>In [2]: b = a[10:]<br><br>In [3]: b.filename<br>Out[3]: '/home/charris/tmp.mmap'<br><br><span style="font-family:arial,helvetica,sans-serif">or did you mean something else? I was guessing the fix could be mad in the same place that copied over the filename.</span><br>
</span><br><br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
Cheers,<br>
<br>
Gaël<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</div></div></blockquote></div><br>