@@ -425,9 +425,9 @@ def argument_parser(args):
425425 " to be ploteted in the combined figure." ,
426426 metavar = "'2 4 5'" , default = None )
427427 plot_opts .add_argument ("-bw" , dest = "blacknwhite" ,
428- action = "store_const" , const = True ,
429- help = "Set this flag to draw greyscale plots"
430- " instead of colored ones." )
428+ action = "store_const" , const = True ,
429+ help = "Set this flag to draw greyscale plots"
430+ " instead of colored ones." )
431431 plot_opts .add_argument ("--use-ind-labels" , dest = "use_ind" ,
432432 action = "store_const" , const = True ,
433433 help = "Use the individual labels in the "
@@ -448,8 +448,8 @@ def argument_parser(args):
448448 help = "The prefix of the output meanQ files."
449449 "The current directory will be scanned"
450450 " and all files that match the prefix." )
451- main_opts .add_argument ("-f" , dest = "format " , type = str , required = True ,
452- choices = ["structure" , "fastStructure " ,
451+ main_opts .add_argument ("-f" , dest = "program " , type = str , required = True ,
452+ choices = ["structure" , "faststructure " ,
453453 "maverick" ],
454454 help = "The format of the result files." )
455455 main_opts .add_argument ("-K" , dest = "bestk" , nargs = "+" , required = True ,
@@ -506,7 +506,7 @@ def argument_parser(args):
506506 if "-mv" in sys .argv and arguments .params is None :
507507 parser .error ("-mv requires --params." )
508508 else :
509- if arguments .format == "faststructure" and arguments .popfile is None \
509+ if arguments .program == "faststructure" and arguments .popfile is None \
510510 and arguments .indfile is None :
511511 parser .error ("fastStructure plots require either --pop or --ind." )
512512
@@ -596,10 +596,10 @@ def main():
596596 if arg .main_op == "plot" :
597597
598598 # Get all files matching the provided prefix
599- if arg .format == "fastStructure " :
599+ if arg .program == "faststructure " :
600600 infiles = [x for x in os .listdir ("." ) if x .startswith (arg .prefix )
601601 and x .endswith (".meanQ" )]
602- elif arg .format == "structure" :
602+ elif arg .program == "structure" :
603603 infiles = [x for x in os .listdir ("." ) if x .startswith (arg .prefix )
604604 and "rep1_" in x ]
605605 else :
@@ -616,7 +616,7 @@ def main():
616616
617617 bestk = [int (x ) for x in arg .bestk ]
618618
619- sp .main (infiles , arg .format , arg .outpath , bestk , popfile = arg .popfile ,
619+ sp .main (infiles , arg .program , arg .outpath , bestk , popfile = arg .popfile ,
620620 indfile = arg .indfile , filter_k = bestk , bw = arg .blacknwhite ,
621621 use_ind = arg .use_ind )
622622
0 commit comments