Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyes319 committed Aug 31, 2024
1 parent 158d7b5 commit cc83691
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mace/cli/run_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ def run(args: argparse.Namespace) -> None:
distributed=args.distributed,
)
logging.info("Error-table on TRAIN and VALID:\n" + str(table_train_valid))
if not test_data_loader:
if not test_data_loader:
table_test = create_error_table(
table_type=args.error_table,
all_data_loaders=test_data_loader,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_run_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def test_run_train_foundation_multihead(tmp_path, fitting_configs):
fitting_configs_dft = []
fitting_configs_mp2 = []
for i, c in enumerate(fitting_configs):
if i == 0 or i == 1:
if i in (0, 1):
c_dft = c.copy()
c_dft.info["head"] = "DFT"
fitting_configs_dft.append(c_dft)
Expand Down

0 comments on commit cc83691

Please sign in to comment.