vars_functions=populate_with_array_ids(user.vars_functions.get(),style,array_ids_dict) gauss_constraints=populate_with_array_ids((user.gauss_constraints.get()),style,array_ids_dict) contour_constraints=populate_with_array_ids((user.contour_constraints.get()),style,array_ids_dict) # populate contours and add to managers contours=populate_contours(user.contours.get()) add_contours(contours) # get axes that are in the spaces axes_list=get_axes_list_from_spaces(spaces) # for now the "valid" value functions are those for which array_ids are specified valid_values_list=list(vars_lookups.keys())+list(vars_functions.keys())+ \ list(gauss_constraints.keys())+list(contour_constraints.keys())+\ [args.reference] # populate the valid-and-required-by-spaces axes axes=populate_axes(user.axes.get(),valid_values_list,axes_list) # now add values to the managers add_vars_lookups(vars_lookups) add_vars_functions(vars_functions) add_gauss_constraints(gauss_constraints) add_contour_constraints(contour_constraints) # look for chi2 calculators if args.reference in user.constraints_sets.constraints.keys(): add_chi2_calculator(args.reference,user.constraints_sets.get(args.reference)) # axes and spaces to managers add_axes(axes) pp(spaces) add_spaces(spaces) # input and output files outfile=args.outfile #finally make the plots cw.sqlite_make_plots(args.sqlite_db,'select rowid, * from points;',outfile)
sql_selection='select {} from points {};'.format(columns,sql_where) print('the sql query is:\n{}'.format(sql_selection)) # get unique items in the list ordered vars_lookups=tools.populate_with_array_ids(vars_lookups,style,array_ids_dict) vars_functions=tools.populate_with_array_ids(vars_functions,style,array_ids_dict) gauss_constraints=tools.populate_with_array_ids(gauss_constraints,style,array_ids_dict) contour_constraints=tools.populate_with_array_ids(contour_constraints,style,array_ids_dict) mneu_mg_m12g_m3g_X2_lookups=tools.populate_with_array_ids(mneu_mg_m12g_m3g_X2_lookups,style,array_ids_dict) # pupulate mneu_mg_m12g_m3g_X2_lookups with the lookup data mneu_mg_m12g_m3g_X2_lookups=tools.populate_mneu_mg_m12g_m3g_X2_lookups(mneu_mg_m12g_m3g_X2_lookups) # populate contours and add to managers contours=tools.populate_contours(user.contours.get()) tools.add_contours(contours) # now add values to the managers tools.add_vars_lookups(vars_lookups) tools.add_vars_functions(vars_functions) tools.add_gauss_constraints(gauss_constraints) tools.add_contour_constraints(contour_constraints) tools.add_mneu_mg_m12g_m3g_X2_lookups(mneu_mg_m12g_m3g_X2_lookups) # look for chi2 calculators if args.reference in user.constraints_sets.constraints.keys(): tools.add_chi2_calculator(args.reference,user.constraints_sets.get(args.reference)) # axes and spaces to managers tools.add_axes(axes) tools.pp(spaces) tools.add_spaces(spaces) # input and output files outfile=args.outfile #finally make the plots cw.sqlite_make_plots(args.sqlite_db,sql_selection,outfile,args.reference)