def test_logging_setup(level): assert initLogging(level)
action="store", type=str, help="configuration file", required=True) argumentparser.add_argument("--device", action="store", type=str, help="configuration file", default="CPU:0") argumentparser.add_argument( "--batchMode", action="store_true", ) argumentparser.add_argument( "--stopEarly", action="store_true", ) return argumentparser.parse_args(args) def main(args, config): trainAutoencoder(config, "", batch=args.batchMode) if __name__ == "__main__": args = parseArgs(sys.argv[1:]) initLogging(args.log) config = TrainingConfig(args.config) main(args, config)
"Colors" : ["#1d00c6","#640104","#c90313","#fc6769","#159a23"], "catLabel" : "SR with $\geq 9$ jets", "yScale" : 1.5, "lumi" : 137.1, #"CMSString" : "Work in progress (Simulation)", #"CMSString" : "Private work (Simulation)", "CMSString" : "Private work", #"CMSString" : "Work in progress", } } if __name__ == "__main__": print(plots) initLogging(20) for plot in plots: logging.warning("Plotting %s", plot) plotSettings = plots[plot] if "CMSString" in plotSettings.keys(): thisCMSString = plotSettings["CMSString"] else: thisCMSString = "Work in progress" if "Colors" in plotSettings.keys(): theseColors = plotSettings["Colors"] else: theseColors = None if "catLabel" in plotSettings.keys(): thisCatLabel = plotSettings["catLabel"] else: