ome / omero-figure

An OMERO.web app for creating Figures from images in OMERO
http://figure.openmicroscopy.org
GNU Affero General Public License v3.0
15 stars 30 forks source link

Bug: Scalebar length KeyError in export script #379

Closed will-moore closed 4 years ago

will-moore commented 4 years ago

From https://www.openmicroscopy.org/qa2/qa/feedback/29256/

"I keep getting this error when trying to export a figure. I don't understand where the problem is coming from......"

Traceback (most recent call last):
File "./script", line 2327, in <module>
run_script()
File "./script", line 2313, in run_script
file_annotation = export_figure(conn, script_params)
File "./script", line 2269, in export_figure
return fig_export.build_figure()
File "./script", line 975, in build_figure
self.add_info_page(panels_json)
File "./script", line 1716, in add_info_page
sb_length = p['scalebar']['length']
KeyError: 'length'

Fix script to handle this nicely (use default length? or don't show scalebar) and see if there's any obvious way this could have been set in the UI?