@@ -834,16 +834,16 @@ def plotk(self, kvals, output_dir):
834834 '"Export to plot.ly"}' , '' )
835835
836836 # Create html file
837- with open (filepath , "w" ) as fh :
838- fh .write (ploty_html (pdiv ))
837+ with open (filepath , "w" ) as flh :
838+ flh .write (ploty_html (pdiv ))
839839
840840 def plotk_static (self , kval , output_dir , bw = False , use_ind = False ):
841841 """
842842 Generates a structure plot in svg format.
843843 :param kval: (int) Must match the K value from self.kvals
844844 :param output_dir: (string) Path of the plot file
845- :param bw: (bool) If True, plots will be generated with patterns instead of
846- colors to distinguish k groups.
845+ :param bw: (bool) If True, plots will be generated with patterns instead
846+ of colors to distinguish k groups.
847847 :param show_ind: (bool) If True, and if individual labels were provided
848848 with the --ind option, use those labels instead of population labels
849849 """
@@ -973,7 +973,7 @@ def main(result_files, fmt, outdir, bestk=None, popfile=None, indfile=None,
973973 missing = [str (x ) for x in filter_k if x not in klist .kvals ]
974974 if missing :
975975 logging .warning ("The following K values are missing: {}" .format (
976- " " .join (missing )))
976+ " " .join (missing )))
977977 else :
978978 filter_k = list (klist .kvals .keys ())
979979
0 commit comments