@@ -232,8 +232,7 @@ def _setup(self, **kwargs):
232232 # Check that the system contains a perturbable molecule.
233233 if self ._system .nPerturbableMolecules () == 0 :
234234 raise ValueError (
235- "'BioSimSpace.Protocol.FreeEnergy' requires a "
236- "perturbable molecule!"
235+ "'BioSimSpace.Protocol.FreeEnergy' requires a perturbable molecule!"
237236 )
238237
239238 # Check that the perturbation type is supported..
@@ -2201,7 +2200,7 @@ def _add_position_restraints(self):
22012200 # Write restraints for each atom.
22022201 for atom_idx in restrained_atoms :
22032202 file .write (
2204- f"{ atom_idx + 1 :4} 1 { force_constant } { force_constant } { force_constant } { force_constant } { force_constant } { force_constant } \n "
2203+ f"{ atom_idx + 1 :4} 1 { force_constant } { force_constant } { force_constant } { force_constant } { force_constant } { force_constant } \n "
22052204 )
22062205
22072206 else :
@@ -2214,7 +2213,7 @@ def _add_position_restraints(self):
22142213 # Write restraints for each atom.
22152214 for atom_idx in restrained_atoms :
22162215 file .write (
2217- f"{ atom_idx + 1 :4} 1 { force_constant } { force_constant } { force_constant } \n "
2216+ f"{ atom_idx + 1 :4} 1 { force_constant } { force_constant } { force_constant } \n "
22182217 )
22192218
22202219 # Work out the offset.
@@ -2300,7 +2299,7 @@ def _add_position_restraints(self):
23002299 # Write restraints for each atom.
23012300 for atom_idx in atom_idxs :
23022301 file .write (
2303- f"{ atom_idx + 1 :4} 1 { force_constant } { force_constant } { force_constant } \n "
2302+ f"{ atom_idx + 1 :4} 1 { force_constant } { force_constant } { force_constant } \n "
23042303 )
23052304
23062305 # Work out the offset.
@@ -2671,8 +2670,7 @@ def _getFinalFrame(self):
26712670 # Locate the coordinate file.
26722671 if not _os .path .isfile (self ._crd_file ):
26732672 _warnings .warn (
2674- "Invalid coordinate file! "
2675- "%s gro file not found." % (self ._crd_file )
2673+ "Invalid coordinate file! %s gro file not found." % (self ._crd_file )
26762674 )
26772675 return None
26782676
0 commit comments