program = program.lower()
if program not in list_all_programs():
input_data = FailedOperation(
input_data=input_data,
error=ComputeError(
error_type="not_registered",
error_message="QCEngine Call Error:\n"
"Program {} is not registered with QCEngine".format(program)))
elif program not in list_available_programs():
input_data = FailedOperation(
input_data=input_data,
error=ComputeError(
error_type="not_available",
error_message="QCEngine Call Error:\n"
"Program {} is registered with QCEngine, but cannot be found".format(program)))
error = _process_failure_and_return(input_data, return_dict, raise_error)
if error:
return error
// Build the model and validate
input_data = model_wrapper(input_data, ResultInput)
error = _process_failure_and_return(input_data, return_dict, raise_error)
if error:
return error