File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
pyiron_lammps/compatibility Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 22import subprocess
33from typing import Optional
44
5- from ase .atoms import Atoms
65import pandas
6+ from ase .atoms import Atoms
77
88from pyiron_lammps .compatibility .calculate import (
99 calc_md ,
1010 calc_minimize ,
1111 calc_static ,
1212)
13+ from pyiron_lammps .compatibility .structure import write_lammps_datafile
1314from pyiron_lammps .output import parse_lammps_output
1415from pyiron_lammps .potential import get_potential_by_name
15- from pyiron_lammps .compatibility .structure import write_lammps_datafile
1616
1717
1818def lammps_file_interface_function (
Original file line number Diff line number Diff line change @@ -120,9 +120,7 @@ def structure_bond(self):
120120 if self .cutoff_radius is None :
121121 bonds_lst = get_bonds (structure = self .structure , max_shells = 1 )
122122 else :
123- bonds_lst = get_bonds (
124- structure = self .structure , radius = self .cutoff_radius
125- )
123+ bonds_lst = get_bonds (structure = self .structure , radius = self .cutoff_radius )
126124 bonds = []
127125
128126 for ia , i_bonds in enumerate (bonds_lst ):
@@ -416,10 +414,10 @@ def get_charge(potential_line_lst, element_symbol):
416414
417415 try :
418416 line = "set group {} charge" .format (element_symbol )
419- return float (_find_line_by_prefix (potential_line_lst = potential_line_lst , prefix = line )[4 ])
417+ return float (
418+ _find_line_by_prefix (potential_line_lst = potential_line_lst , prefix = line )[4 ]
419+ )
420420
421421 except ValueError :
422- msg = "potential does not specify charge for element {}" .format (
423- element_symbol
424- )
422+ msg = "potential does not specify charge for element {}" .format (element_symbol )
425423 raise NameError (msg ) from None
You can’t perform that action at this time.
0 commit comments