Skip to content

Commit

Permalink
Make formatting flake8-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Franz Waibl committed Mar 21, 2023
1 parent ad43195 commit fe62d2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pygromos/files/coord/cnf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ def get_pdb(self, connectivity_top=None) -> str:

output_lines = ["TITLE " + str(self.TITLE).replace("END", "")]
if hasattr(self, "GENBOX"):
lengths = [l * 10 for l in self.GENBOX.length]
lengths = [length * 10 for length in self.GENBOX.length]
angles = self.GENBOX.angles
output_lines.append(
"CRYST1{:>9.3f}{:>9.3f}{:>9.3f}{:>7.2f}{:>7.2f}{:>7.2f} P 1 1".format(*lengths, *angles)
Expand Down
4 changes: 2 additions & 2 deletions pygromos/files/trajectory/trc.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ def parse_timestep(self, fh):
def parse_genbox(self, fh):
"Parse a genbox block from an iterator yielding lines (i.e., an open file)"
next(fh)
lengths = tuple(float(l) for l in next(fh).split())
angles = tuple(float(a) for a in next(fh).split())
lengths = tuple(float(length) for length in next(fh).split())
angles = tuple(float(angle) for angle in next(fh).split())
next(fh)
next(fh)
if next(fh).strip() != "END":
Expand Down

0 comments on commit fe62d2c

Please sign in to comment.