Skip to content

Commit 9559342

Browse files
committed
Better PEP8 conformance.
1 parent e2c44d6 commit 9559342

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

structure_threader/plotter/structplot.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -246,23 +246,21 @@ def _parse_structure(self):
246246
end_parsing_string = "estimated allele frequencies in each " \
247247
"cluster"
248248

249-
with open(self.file_path) as fh:
250-
for line in fh:
249+
with open(self.file_path) as flh:
250+
for line in flh:
251251
# The string that marks the beginning of the parsing was found
252252
if line.strip().lower().startswith(parsing_string):
253253
# Check if the next line has the signature of an output
254254
# file generated with the USEPOPINFO flag.
255-
if next(fh).lower().startswith(popinfo_string):
256-
self._parse_usepopinfo(fh, end_parsing_string)
255+
if next(flh).lower().startswith(popinfo_string):
256+
self._parse_usepopinfo(flh, end_parsing_string)
257257
break
258258
# THe output file generated was NOT generated with the
259259
# USEPOPINFO flag.
260260
else:
261-
self._parse_nousepopinfo(fh, end_parsing_string)
261+
self._parse_nousepopinfo(flh, end_parsing_string)
262262
break
263263

264-
pass
265-
266264
def _parse_faststructure(self):
267265
"""
268266
Parses the meanQ array of a single FastStructure output file

0 commit comments

Comments
 (0)