Skip to content

Commit

Permalink
fix import sort and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyes319 committed Jun 17, 2024
1 parent 458a9bb commit 36eccd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mace/cli/preprocess_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

import argparse
import ast
from functools import partial
import json
import logging
import multiprocessing as mp
import os
import random
from functools import partial
from glob import glob
from typing import List, Tuple

Expand Down Expand Up @@ -250,13 +250,13 @@ def run(args: argparse.Namespace):
i.join()

if args.test_file is not None:
multi_test_hdf5_ = partial(multi_test_hdf5, args=args, split_test=split_test, drop_last=drop_last)
logging.info("Preparing test sets")
for name, subset in collections.tests:
drop_last = False
if len(subset) % 2 == 1:
drop_last = True
split_test = np.array_split(subset, args.num_process)
multi_test_hdf5_ = partial(multi_test_hdf5, args=args, split_test=split_test, drop_last=drop_last)

processes = []
for i in range(args.num_process):
Expand Down

0 comments on commit 36eccd6

Please sign in to comment.