Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyes319 committed Aug 22, 2024
1 parent a7c98ad commit c50de48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mace/tools/multihead_tools.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import argparse
import dataclasses
import logging
import os
import urllib.request
import dataclasses
from typing import Any, Dict, List, Optional, Union

import torch
Expand Down
4 changes: 2 additions & 2 deletions tests/test_run_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def test_run_train_multihead(tmp_path, fitting_configs):
for sub_key, sub_value in value.items():
yaml_str += f" {sub_key}: {sub_value}\n"
filename = tmp_path / "config.yaml"
with open(filename, "w") as file:
with open(filename, "w", encoding="utf-8") as file:
file.write(yaml_str)

mace_params = _mace_params.copy()
Expand Down Expand Up @@ -486,7 +486,7 @@ def test_run_train_foundation_multihead(tmp_path, fitting_configs):
for sub_key, sub_value in value.items():
yaml_str += f" {sub_key}: {sub_value}\n"
filename = tmp_path / "config.yaml"
with open(filename, "w") as file:
with open(filename, "w", encoding="utf-8") as file:
file.write(yaml_str)
mace_params = _mace_params.copy()
mace_params["valid_fraction"] = 0.1
Expand Down

0 comments on commit c50de48

Please sign in to comment.