@@ -264,7 +264,9 @@ def _set_ase_structure(lmp, structure: Atoms):
264
264
)
265
265
266
266
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 :
268
270
"""
269
271
Convert a lammps compute to a numpy array.
270
272
Assumes the compute returns a floating point numbers.
@@ -378,7 +380,9 @@ def _set_compute_lammps(lmp, bispec_options: dict, numtypes: int):
378
380
lmp .command (f"{ base_b } { radelem } { wj } { kwargs } " )
379
381
380
382
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 :
382
386
"""
383
387
Internal function to calculate the per-atom SNAP descriptors
384
388
@@ -515,7 +519,9 @@ def _set_computes_snap(lmp, bispec_options: dict):
515
519
lmp .command (f"compute { cname } _sum all reduce sum c_{ cname } [*]" )
516
520
517
521
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 :
519
525
"""
520
526
Internal function to extract the compute from the LAMMPS instance
521
527
@@ -582,7 +588,9 @@ def _extract_computes_snap(lmp, num_atoms: int, n_coeff: int, num_types: int) ->
582
588
).copy ()
583
589
584
590
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 :
586
594
"""
587
595
Internal function to calculate per-atom derivatives of the SNAP descriptors
588
596
0 commit comments