diff --git a/dpdata/deepmd/hdf5.py b/dpdata/deepmd/hdf5.py index ea373ae49..5b6239580 100644 --- a/dpdata/deepmd/hdf5.py +++ b/dpdata/deepmd/hdf5.py @@ -146,4 +146,4 @@ def dump(f: h5py.File, set_folder.create_dataset('%s.npy' % prop['fn'], data=reshaped_data[dt][set_stt:set_end]) if nopbc: - g.create_dataset("nopbc", True) + g.create_dataset("nopbc", data=True) diff --git a/setup.py b/setup.py index 428a2bfe7..ec554be56 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ readme = f.read() # install_requires = ['xml'] -install_requires=['numpy>=1.14.3', 'monty', 'scipy', 'h5py', 'wcmatch'] +install_requires=['numpy>=1.14.3', 'monty', 'scipy', 'h5py', 'wcmatch', 'importlib_metadata>=1.4; python_version < "3.8"'] setuptools.setup( name="dpdata",