def GenerateDebugOutput(sim_name): Print.new_step("Generate debug output") # generates cmake_output.log and / or make_output.log (depends if cmake # ran sucessfully or not) if BuildCommand(debug=True): # generates runtime_output.log RunCommand(debug=True) # generates root dictionary log(s) CopyRootDictionaries() # generates system_info.log GenerateSystemInfoLog()
sys.exit() BuildCommand() elif args.cmd == 'clean': if len(unknown) != 0: clean_sp.print_help() sys.exit() BuildCommand(clean=True, build=False) elif args.cmd == 'demo': demo_name = None destination = None if len(unknown) >= 1: demo_name = unknown[0] if len(unknown) >= 2: destination = unknown[1] DemoCommand(demo_name, destination) elif args.cmd == 'run': RunCommand(args=unknown) elif args.cmd == 'assist': if len(unknown) != 0: assist_sp.print_help() sys.exit() AssistCommand() elif args.version: print(Version.string()) sys.exit() elif args.shortversion: print(Version.shortstring()) sys.exit() else: parser.print_help()
'seperate git branch. In the end it will output ' 'a link that you should add to your e-mail or ' 'slack message when you describe your issue.' ) sp.add_parser('build', help='Builds the simulation binary') sp.add_parser('clean', help='Removes all build files') spp = sp.add_parser('new', help='Creates a new simulation project. Downloads ' 'a template project from BioDynaMo, renames it to the given simulation name, ' 'creates a new Github repository and configures git.') spp.add_argument('SIMULATION_NAME', type=str, help='simulation name help') spp.add_argument('--no-github', action='store_true', help='Do not create a Github repository.' ) sp.add_parser('run', help='Executes the simulation') args = parser.parse_args() if args.cmd == 'new': NewCommand(args.SIMULATION_NAME, args.no_github) elif args.cmd == 'build': BuildCommand() elif args.cmd == 'clean': BuildCommand(clean=True, build=False) elif args.cmd == 'run': RunCommand() elif args.cmd == 'assist': AssistCommand() else: parser.print_help()