diff --git a/fact/VERSION b/fact/VERSION index faa5fb2..d90746a 100644 --- a/fact/VERSION +++ b/fact/VERSION @@ -1 +1 @@ -0.22.2 +0.22.3 diff --git a/fact/io.py b/fact/io.py index c3e6824..cfcae79 100644 --- a/fact/io.py +++ b/fact/io.py @@ -283,10 +283,10 @@ def to_h5py(df, filename, key='data', mode='a', dtypes=None, index=True, **kwarg Parameters ---------- - filename: str - output file name df: pd.DataFrame The data to write out + filename: str + output file name key: str the name for the hdf5 group to hold all datasets, default: data mode: str @@ -476,5 +476,5 @@ def append_to_h5py(f, array, key='events'): for column in array.dtype.names: dataset = group.get(column) if dataset is None: - raise KeyError('No such dataset {}'.format(dataset)) + raise KeyError('No such dataset {}'.format(column)) append_to_h5py_dataset(array[column], dataset)