File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
structure_threader/plotter Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments