Skip to content

Commit

Permalink
Merge pull request #66 from nlesc-nano/df
Browse files Browse the repository at this point in the history
BUG: Fixed size-1 molecular dataframes not being correctly updated
  • Loading branch information
BvB93 authored Jan 31, 2022
2 parents dfb59f9 + d772db3 commit df2f0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataCAT/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def update_hdf5(self, df: pd.DataFrame,
group = f[database]
dtype = IDX_DTYPE[database]

if new.any():
if len(new):
ret = self._write_hdf5(group, df, new.index, dtype, database, opt=opt)
else:
ret = pd.Series(name=HDF5_INDEX, dtype=int)
Expand Down

0 comments on commit df2f0bb

Please sign in to comment.