Skip to content

Commit 781d380

Browse files
committed
Fix docstring and error message
1 parent 8a5eadd commit 781d380

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

fact/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.22.2
1+
0.22.3

fact/io.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ def to_h5py(df, filename, key='data', mode='a', dtypes=None, index=True, **kwarg
283283
284284
Parameters
285285
----------
286-
filename: str
287-
output file name
288286
df: pd.DataFrame
289287
The data to write out
288+
filename: str
289+
output file name
290290
key: str
291291
the name for the hdf5 group to hold all datasets, default: data
292292
mode: str
@@ -476,5 +476,5 @@ def append_to_h5py(f, array, key='events'):
476476
for column in array.dtype.names:
477477
dataset = group.get(column)
478478
if dataset is None:
479-
raise KeyError('No such dataset {}'.format(dataset))
479+
raise KeyError('No such dataset {}'.format(column))
480480
append_to_h5py_dataset(array[column], dataset)

0 commit comments

Comments
 (0)