def get_job_analysis(job_id, show_plots=True, debug=False):
job_report = {}
if job_id == None:
boom("Failed to start a new job")
else:
job_res = helper_get_job_analysis(job_id)
if job_res["status"] != "SUCCESS":
boom("Job=" + str(job_id) + " failed with status=" + str(job_res["status"]) + " err=" + str(job_res["error"]))
else:
job_report = job_res["record"]
# end of get job analysis
if show_plots:
if "images" in job_report:
for img in job_report["images"]:
anmt(img["title"])
lg("URL: " + str(img["image"]))
ipyDisplay(ipyImage(url=img["image"]))
lg("---------------------------------------------------------------------------------------")
else:
boom("Job=" + str(job_id) + " does not have any images yet")
# end of if images exist
# end of downloading job plots
return job_report
# end of get_job_analysis
评论列表
文章目录