Skip to content

Commit

Permalink
Fixing style errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
stickler-ci committed Jul 18, 2019
1 parent 9677d68 commit 3cebb04
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mddatasetbuilder/deepmd.py
Expand Up @@ -50,10 +50,11 @@ def _searchpath(self):
multi_systems.to_deepmd_npy(self.deepmd_dir)
for formula, system in multi_systems.systems.items():
self.system_paths.append(os.path.join(self.deepmd_dir, formula))
self.batch_size.append(min(max(32//(system["coords"].shape[1]//3), 1), system["coords"].shape[0]))
self.batch_size.append(
min(max(32//(system["coords"].shape[1]//3), 1), system["coords"].shape[0]))

def _preparedeepmdforLOG(self, logfilename):
return dpdata.LabeledSystem(logfilename ,fmt = self.fmt)
return dpdata.LabeledSystem(logfilename, fmt=self.fmt)

def _writejson(self, jsonfilename):
jsonpath = os.path.dirname(jsonfilename)
Expand Down Expand Up @@ -133,4 +134,4 @@ def _commandline():
PrepareDeePMD(data_path=args.path, deepmd_dir=args.dir,
atomname=args.atomname,
jsonfilenumber=args.number
).praparedeepmd()
).praparedeepmd()

0 comments on commit 3cebb04

Please sign in to comment.