Skip to content

Commit 4ef7c6e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c4da734 commit 4ef7c6e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

crystal_toolkit/components/structure.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@ class StructureMoleculeComponent(MPComponent):
5555
objects.
5656
"""
5757

58-
available_bonding_strategies={**{subcls.__name__: subcls for subcls in NearNeighbors.__subclasses__()}, 'LobsterNeighbors': LobsterNeighbors}
59-
58+
available_bonding_strategies = {
59+
**{subcls.__name__: subcls for subcls in NearNeighbors.__subclasses__()},
60+
"LobsterNeighbors": LobsterNeighbors,
61+
}
62+
6063
default_scene_settings = frozendict(
6164
extractAxis=True,
6265
# For visual diff testing, we change the renderer to SVG since this WebGL
@@ -965,7 +968,7 @@ def _preprocess_input_to_graph(
965968
valid_bond_strategies = (
966969
StructureMoleculeComponent.available_bonding_strategies
967970
)
968-
971+
969972
if bonding_strategy not in valid_bond_strategies:
970973
raise ValueError(
971974
"Bonding strategy not supported. Please supply a name of a NearNeighbor "

0 commit comments

Comments
 (0)