Skip to content

Commit

Permalink
allow passing pytables options on load
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Cerutti committed Nov 19, 2019
1 parent 01af936 commit 1e7a4df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepdish/io/hdf5io.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def save(path, data, compression='default'):
group._v_attrs[DEEPDISH_IO_UNPACK] = True


def load(path, group=None, sel=None, unpack=False):
def load(path, group=None, sel=None, unpack=False, *args, **kwargs):
"""
Loads an HDF5 saved with `save`.
Expand Down Expand Up @@ -632,7 +632,7 @@ def load(path, group=None, sel=None, unpack=False):
save
"""
with tables.open_file(path, mode='r') as h5file:
with tables.open_file(path, mode='r', *args, **kwargs) as h5file:
pathtable = {} # dict to keep track of objects already loaded
if group is not None:
if isinstance(group, str):
Expand Down

0 comments on commit 1e7a4df

Please sign in to comment.