-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename memmap
?
#80
Comments
In light of #79, it would make sense to rename the
Longer term I think it would be nice to add |
I'd be fine with either of those names.
So |
Actually, the better solution is likely something like img = empty(LazyTIFF, T, "filepath.tif") where What do you think? |
That works for me! |
Throwing the |
I think you'll have to do the deprecation simultaneously with the 0.6.0 release. EDIT: or maybe I misunderstood you. I thought you were planning a 0.5.6 release in which |
No, you understood me properly. I'm about to submit the PR for the new I'll tag the v0.6.0 release then. |
memmap
is used for incremental writing. However, as pointed out in #79,it's not actually usingMmap.mmap
and perhaps should be renamed. What aboutempty_tiff
?Alternatively, you can use (warning: untested)
This should work at least on Linux despite apparently closing the file before values are assigned; Linux will defer the close until
img
gets garbage-collected. I am not sure about other platforms.Of course, that doesn't create a TIFF. You'd need to do some work to write the header and set up empty chunks for the slice planes, essentially as
MmappedTIFF
does in #79. Basically, you mmap the entire file-buffer and then assign slices to correctly-placedview
s within the full buffer. Of course, if it's possible to pack all slice planes densely, then just a singleview
will suffice for an entire 3d array.This may be more of a pain than any benefit you'd derive from it, so just renaming
memmap
seems expeditious.The text was updated successfully, but these errors were encountered: