Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions h5py_wrapper/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@


def save(filename, d, write_mode='a', overwrite_dataset=False,
resize=False, path=None, dict_label='', compression=None):
resize=False, path=None, compression=None):
"""
Save a dictionary to an hdf5 file.

Expand Down Expand Up @@ -87,15 +87,6 @@ def save(filename, d, write_mode='a', overwrite_dataset=False,
"file)".format(filename=filename))
else:
try:
if dict_label:
warnings.warn("Deprecated argument dict_label provided. "
"dict_label will be removed in the next release. "
"Please use path instead.",
DeprecationWarning)
if path is not None:
raise ValueError("dict_label and path must not "
"be defined simultaneously.")
path = dict_label
if path:
base = f.require_group(path)
_dict_to_h5(f, d, overwrite_dataset, parent_group=base,
Expand Down
6 changes: 0 additions & 6 deletions tests/test_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,6 @@ def test_conversion_script(tmpdir):
os.remove(tmp_fn2)


def test_raises_error_for_dictlabel_and_path():
res = {}
with pytest.raises(ValueError):
h5w.save(fn, res, dict_label='test', path='test')


@pytest.fixture()
def cleanup():
yield
Expand Down