Skip to content

Commit

Permalink
weird lines added
Browse files Browse the repository at this point in the history
  • Loading branch information
sblackburn-mila committed Mar 19, 2024
1 parent 9c7e8ad commit 720290e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion crystal_diffusion/data/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,3 @@ def test_dataloader(self):
shuffle=False,
num_workers=self.num_workers,
)

1 change: 0 additions & 1 deletion crystal_diffusion/data/data_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,3 @@ def prepare_dataset(self):

self.test_images = test_images
self.test_labels = test_labels

4 changes: 2 additions & 2 deletions crystal_diffusion/data/diffusion/data_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def prepare_data(self, raw_data_dir: str, mode: str = 'train') -> List[str]:
# we assume that raw_data_dir contains subdirectories named train_run_N for N>=1
# get the list of runs to parse
assert mode in ['train', 'valid', 'test'], f"Mode should be train, valid or test. Got {mode}."
list_runs = [d for d in os.listdir(raw_data_dir) if os.path.isdir(os.path.join(raw_data_dir, d)) and
d.startswith(f"{mode}_run")]
list_runs = [d for d in os.listdir(raw_data_dir) if os.path.isdir(os.path.join(raw_data_dir, d))
and d.startswith(f"{mode}_run")]
list_files = []
for d in list_runs:
if f"{d}.parquet" not in os.listdir(self.data_dir):
Expand Down

0 comments on commit 720290e

Please sign in to comment.