else: cra,cdec=get_centpos() r=RegPoly(regfile,cra,cdec) if isinstance(t,str): t=Table.read(t) if 'Facet' not in t.columns: r.add_facet_labels(t) plot_offsets(t,r.clist,'red') if savefig is not None: plt.savefig(savefig) if __name__=='__main__': # Main loop if len(sys.argv)<2: warn('quality_pipeline.py must be called with at least one parameter file\nor a command-line option list.\nE.g "pipeline.py example.cfg second_example.cfg --solutions-robust=0.1"\nSee below for a complete list of possible options with their default values.') print_options(option_list) sys.exit(1) o=options(sys.argv[1:],option_list) if o['pbimage'] is None: die('pbimage must be specified') if o['nonpbimage'] is None: die('nonpbimage must be specified') if o['list'] is not None: # fix up the new list-type options for i,cat in enumerate(o['list']): try: o[cat]=o['filenames'][i] except: pass try:
if isinstance(t, str): t = Table.read(t) if 'Facet' not in t.columns: r.add_facet_labels(t) plot_offsets(t, r.clist, 'red') if savefig is not None: plt.savefig(savefig) if __name__ == '__main__': # Main loop if len(sys.argv) < 2: warn( 'quality_pipeline.py must be called with at least one parameter file\nor a command-line option list.\nE.g "pipeline.py example.cfg second_example.cfg --solutions-robust=0.1"\nSee below for a complete list of possible options with their default values.' ) print_options(option_list) sys.exit(1) o = options(sys.argv[1:], option_list) if o['pbimage'] is None: die('pbimage must be specified') if o['nonpbimage'] is None: die('nonpbimage must be specified') if o['list'] is not None: # fix up the new list-type options for i, cat in enumerate(o['list']): try: o[cat] = o['filenames'][i] except: pass try: