Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
W.J. Baldwin committed Oct 29, 2024
1 parent 908acd1 commit 808f794
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mace/cli/eval_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def parse_args() -> argparse.Namespace:
help="Model head used for evaluation",
type=str,
required=False,
default=None
default=None,
)
return parser.parse_args()

Expand Down Expand Up @@ -94,7 +94,7 @@ def run(args: argparse.Namespace) -> None:
heads = model.heads
except AttributeError:
heads = None

data_loader = torch_geometric.dataloader.DataLoader(
dataset=[
data.AtomicData.from_config(
Expand Down
4 changes: 3 additions & 1 deletion mace/data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def update(
return self


def update_keyspec_from_kwargs(keyspec: KeySpecification, keydict:Dict[str, str]) -> KeySpecification:
def update_keyspec_from_kwargs(
keyspec: KeySpecification, keydict: Dict[str, str]
) -> KeySpecification:
# convert command line style property_key arguments into a keyspec
infos = ["energy_key", "stress_key", "virials_key", "dipole_key", "head_key"]
arrays = ["forces_key", "charges_key"]
Expand Down
4 changes: 3 additions & 1 deletion mace/tools/scripts_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class SubsetCollection:
tests: List[Tuple[str, data.Configurations]]


def log_dataset_contents(dataset: data.Configurations, dataset_name: str, keyspec: KeySpecification) -> None:
def log_dataset_contents(
dataset: data.Configurations, dataset_name: str, keyspec: KeySpecification
) -> None:
all_property_names = list(keyspec.info_keys.keys()) + list(
keyspec.arrays_keys.keys()
)
Expand Down

0 comments on commit 808f794

Please sign in to comment.