Skip to content

Commit

Permalink
ENH Allow user to specify keep_cache_in_memory
Browse files Browse the repository at this point in the history
This could potentially solve issue #56.
  • Loading branch information
luispedro committed Jan 28, 2015
1 parent af09b9f commit 05e90d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mahotas/io/freeimage.py
Expand Up @@ -602,7 +602,7 @@ def write(array, filename, flags=0):
_FI.FreeImage_Unload(bitmap)


def write_multipage(arrays, filename, flags=0):
def write_multipage(arrays, filename, flags=0, keep_cache_in_memory=True):
"""Write a list of (width, height) or (nchannels, width, height)
arrays to a multipage greyscale, RGB, or RGBA image, with file type
deduced from the filename.
Expand All @@ -614,7 +614,6 @@ def write_multipage(arrays, filename, flags=0):
'mahotas.freeimage: cannot determine type of file %s' % filename)
create_new = True
read_only = False
keep_cache_in_memory = True
multibitmap = _FI.FreeImage_OpenMultiBitmap(
ftype, _bytestr(filename), create_new, read_only,
keep_cache_in_memory, 0)
Expand Down

0 comments on commit 05e90d8

Please sign in to comment.