Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
allow path for h5out
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Mar 4, 2019
1 parent d3770c6 commit d8a3d1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deeprank/generate/DataGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ def create_database(self,verbose=False,remove_error=True,prog_bar=False):
self.local_pdbs = self.mpi_comm.recv(source=0,tag=11)

# change hdf5 name
self.hdf5 = '%03d_' %rank + self.hdf5
h5path, h5name = os.path.split(self.hdf5)
self.hdf5 = os.path.join(h5path, '%03d_' %rank + h5name)

# open the file
self.f5 = h5py.File(self.hdf5,'w')
Expand Down

0 comments on commit d8a3d1b

Please sign in to comment.