Skip to content

Commit

Permalink
HDF5: Change default file name when using blosc compression
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed Jan 12, 2015
1 parent f6bd5e4 commit 6773297
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fretbursts/hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ def store(d, compression=dict(complevel=6, complib='zlib'), h5_fname=None,

if h5_fname is None:
basename, extension = os.path.splitext(d.fname)
if compression['complib'] == 'blosc':
basename += '_blosc'
h5_fname = basename + '.hdf5'

orig_file_metadata = {}
Expand Down

0 comments on commit 6773297

Please sign in to comment.