comparison COBRAxy/custom_data_generator.py @ 352:14be2a1071c7 draft

Uploaded
author francesco_lapi
date Thu, 04 Sep 2025 22:54:57 +0000
parents ffb2cfe8ec2e
children d13b39f183a5
comparison
equal deleted inserted replaced
351:ffb2cfe8ec2e 352:14be2a1071c7
215 except KeyError: 215 except KeyError:
216 raise utils.ArgsErr("model", "one of Recon/ENGRO2/HMRcore/Custom_model", ARGS.model) 216 raise utils.ArgsErr("model", "one of Recon/ENGRO2/HMRcore/Custom_model", ARGS.model)
217 217
218 # Load built-in model (Model.getCOBRAmodel uses tool_dir to locate local models) 218 # Load built-in model (Model.getCOBRAmodel uses tool_dir to locate local models)
219 try: 219 try:
220 model = model_enum.getCOBRAmodel(toolDir='.') 220 model = model_enum.getCOBRAmodel()
221 except Exception as e: 221 except Exception as e:
222 # Wrap/normalize load errors as DataErr for consistency 222 # Wrap/normalize load errors as DataErr for consistency
223 raise utils.DataErr(ARGS.model, f"failed loading built-in model: {e}") 223 raise utils.DataErr(ARGS.model, f"failed loading built-in model: {e}")
224 224
225 # Determine final model name: explicit --name overrides, otherwise use the model id 225 # Determine final model name: explicit --name overrides, otherwise use the model id