Skip to content

Commit

Permalink
Merge pull request tongzhugroup#69 from njzjz/new-restyled
Browse files Browse the repository at this point in the history
Restyle fix: work with new deepmd-kit
  • Loading branch information
njzjz committed Jul 18, 2019
2 parents 3cebb04 + 9901f0f commit d6eb31c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mddatasetbuilder/deepmd.py
Expand Up @@ -29,7 +29,8 @@ def __init__(
self.batch_size = []
self.fmt = fmt
self.suffix = suffix
self.jsonfilenames = [os.path.join(f"train{i}", f"train{i}.json") for i in range(jsonfilenumber)]
self.jsonfilenames = [os.path.join(
f"train{i}", f"train{i}.json") for i in range(jsonfilenumber)]

def praparedeepmd(self):
"""Prepare the dataset."""
Expand All @@ -39,7 +40,7 @@ def praparedeepmd(self):

def _searchpath(self):
logfiles = []
for root, _, files in tqdm(os.walk(self.data_path, followlinks = True)):
for root, _, files in tqdm(os.walk(self.data_path, followlinks=True)):
for logfile in files:
if logfile.endswith(self.suffix):
logfiles.append(os.path.join(root, logfile))
Expand Down

0 comments on commit d6eb31c

Please sign in to comment.