if args.use_dashboard.lower() in ["on", "yes", "true"]: args.use_dashboard = True else: args.use_dashboard = False return args if __name__ == "__main__": matplotlib.rcParams['axes.unicode_minus'] = False args = ParseArgs() comm = MPI.COMM_WORLD #@effis-init comm=comm adios = adios2.ADIOS(comm) plotter = plot_util.KittiePlotter(comm, on=args.use_dashboard) plotter.GetMatchingSelections(adios, args.gridvar, exclude=args.exclude, only=args.only, xomit=False, allx=False) plotter.ConnectToStepInfo(adios, group="plotter") if args.type != "image": plt.ion() force = True while force or plotter.NotDone: if force or plotter.DoPlot:
args.only = args.only.split(',') if len(args.exclude) > 0: args.exclude = args.exclude.split(',') return args if __name__ == "__main__": matplotlib.rcParams['axes.unicode_minus'] = False args = ParseArgs() comm = MPI.COMM_WORLD #@effis-init comm=comm adios = adios2.ADIOS(comm) plotter = plot_util.KittiePlotter(comm) plotter.ConnectToStepInfo(adios, group="plotter") plotter.GetMatchingSelections(adios, args.gridvar, exclude=args.exclude, only=args.only, xomit=False, allx=False) plotter.data = ReadMesh(args.nodes, args.triangles, griddata=plotter.data) if plotter.Active: while plotter.NotDone: if plotter.DoPlot: