Skip to content

Commit

Permalink
Blacken. [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Dec 10, 2024
1 parent b16801f commit 9483db1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions emle/models/_mace.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ def __init__(
f"Unsupported MACE model: '{mace_model}'. Available MACE-OFF23 models are "
"'mace-off23-small', 'mace-off23-medium', 'mace-off23-large'"
)
source_model = _mace_off(model=size, device=device, return_raw_model=True)
source_model = _mace_off(
model=size, device=device, return_raw_model=True
)
else:
# Assuming that the model is a local model.
if _os.path.exists(mace_model):
Expand All @@ -208,7 +210,9 @@ def __init__(
raise FileNotFoundError(f"MACE model file not found: {mace_model}")
else:
# If no MACE model is provided, use the default MACE-OFF23(S) model.
source_model = _mace_off(model="small", device=device, return_raw_model=True)
source_model = _mace_off(
model="small", device=device, return_raw_model=True
)

from mace.tools.scripts_utils import extract_config_mace_model

Expand Down

0 comments on commit 9483db1

Please sign in to comment.