diff --git a/installer/constants/parser.py b/installer/constants/parser.py index 720a40c96..8ea6b3f92 100644 --- a/installer/constants/parser.py +++ b/installer/constants/parser.py @@ -212,7 +212,7 @@ './xmipp', f'./xmipp {MODE_ALL}', f'./xmipp {PARAMS[PARAM_JOBS][SHORT_VERSION]} 20', - f'./xmipp {PARAMS[PARAM_PRODUCTION][LONG_VERSION]}', + f'./xmipp {PARAMS[PARAM_PRODUCTION][LONG_VERSION]} True', f'./xmipp {PARAMS[PARAM_BRANCH][SHORT_VERSION]} devel', f'./xmipp {MODE_ALL} {PARAMS[PARAM_JOBS][SHORT_VERSION]} 20 ' f'{PARAMS[PARAM_BRANCH][SHORT_VERSION]} devel' diff --git a/xmipp b/xmipp index dcd46eadd..5688204a0 100755 --- a/xmipp +++ b/xmipp @@ -213,14 +213,17 @@ def modeGetModels(args: argparse.Namespace): modelsDLTK.downloadDeepLearningModels(args.directory, distPath) def modeGetSources(args: argparse.Namespace): - """ - ### Downloads all Xmipp's sources. - - #### Params: - - args (Namespace): Command line arguments parsed by argparse library. - """ - # Clone sources from specified branch - getSources(branch=args.branch, production=args.production) + """ + ### Downloads all Xmipp's sources. + + #### Params: + - args (Namespace): Command line arguments parsed by argparse library. + """ + # Clone sources from specified branch + if hasattr(args, "production"): + getSources(branch=args.branch, production=args.production) + else: + getSources(branch=args.branch) def modeGit(args: argparse.Namespace): """ @@ -371,7 +374,7 @@ if __name__ == "__main__": allSubparser = subparsers.add_parser(MODE_ALL, formatter_class=ModeHelpFormatter) allSubparser.add_argument(*getParamNames(PARAM_JOBS), type=int, default=JOBS) allSubparser.add_argument(*getParamNames(PARAM_BRANCH)) - allSubparser.add_argument(*getParamNames(PARAM_PRODUCTION), type=bool, default=False) + allSubparser.add_argument(*getParamNames(PARAM_PRODUCTION)) allSubparser.add_argument(*getParamNames(PARAM_KEEP_OUTPUT), action='store_true') # Arguments for mode 'cleanAll'