Skip to content

Commit 65ece1a

Browse files
committed
Format black
1 parent f5f191b commit 65ece1a

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

structuretoolkit/analyse/snap.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@ def _set_ase_structure(lmp, structure: Atoms):
264264
)
265265

266266

267-
def _extract_compute_np(lmp, name: str, compute_type: int, result_type: int, array_shape: tuple) -> np.ndarray:
267+
def _extract_compute_np(
268+
lmp, name: str, compute_type: int, result_type: int, array_shape: tuple
269+
) -> np.ndarray:
268270
"""
269271
Convert a lammps compute to a numpy array.
270272
Assumes the compute returns a floating point numbers.
@@ -378,7 +380,9 @@ def _set_compute_lammps(lmp, bispec_options: dict, numtypes: int):
378380
lmp.command(f"{base_b} {radelem} {wj} {kwargs}")
379381

380382

381-
def _calc_snap_per_atom(lmp, structure: Atoms, bispec_options: dict, cutoff: float = 10.0) -> np.ndarray:
383+
def _calc_snap_per_atom(
384+
lmp, structure: Atoms, bispec_options: dict, cutoff: float = 10.0
385+
) -> np.ndarray:
382386
"""
383387
Internal function to calculate the per-atom SNAP descriptors
384388
@@ -515,7 +519,9 @@ def _set_computes_snap(lmp, bispec_options: dict):
515519
lmp.command(f"compute {cname}_sum all reduce sum c_{cname}[*]")
516520

517521

518-
def _extract_computes_snap(lmp, num_atoms: int, n_coeff: int, num_types: int) -> np.ndarray:
522+
def _extract_computes_snap(
523+
lmp, num_atoms: int, n_coeff: int, num_types: int
524+
) -> np.ndarray:
519525
"""
520526
Internal function to extract the compute from the LAMMPS instance
521527
@@ -582,7 +588,9 @@ def _extract_computes_snap(lmp, num_atoms: int, n_coeff: int, num_types: int) ->
582588
).copy()
583589

584590

585-
def _calc_snap_derivatives(lmp, structure: Atoms, bispec_options: dict, cutoff=10.0) -> np.ndarray:
591+
def _calc_snap_derivatives(
592+
lmp, structure: Atoms, bispec_options: dict, cutoff=10.0
593+
) -> np.ndarray:
586594
"""
587595
Internal function to calculate per-atom derivatives of the SNAP descriptors
588596

0 commit comments

Comments
 (0)