Skip to content

Commit

Permalink
Merge pull request #123 from fact-project/fix_io
Browse files Browse the repository at this point in the history
Fix docstring and error message
  • Loading branch information
maxnoe authored May 16, 2019
2 parents 8a5eadd + 781d380 commit 7d86846
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fact/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.22.2
0.22.3
6 changes: 3 additions & 3 deletions fact/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 7d86846

Please sign in to comment.