Text ROIs font
Closed this issue · 4 comments
pwalczysko commented
The problem seems to be with the FontSize
omero transfer pack Image:xxx XXX.tar
...
Populating xml...
Saving metadata at rois-in-orig.tar_folder/transfer.xml.
Traceback (most recent call last):
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/bin/omero", line 8, in <module>
sys.exit(main())
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/omero/main.py", line 126, in main
rv = omero.cli.argv()
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/omero/cli.py", line 1787, in argv
cli.invoke(args[1:])
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/omero/cli.py", line 1225, in invoke
stop = self.onecmd(line, previous_args)
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/omero/cli.py", line 1302, in onecmd
self.execute(line, previous_args)
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/omero/cli.py", line 1384, in execute
args.func(args)
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/omero_cli_transfer.py", line 125, in _wrapper
return func(self, *args, **kwargs)
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/omero_cli_transfer.py", line 190, in pack
self.__pack(args)
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/omero_cli_transfer.py", line 309, in __pack
args.barchive, self.metadata)
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/generate_xml.py", line 693, in populate_xml
populate_image(obj, ome, conn, hostname, metadata)
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/generate_xml.py", line 489, in populate_image
roi_ref = populate_roi(roi, roi_obj, ome, conn)
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/generate_xml.py", line 447, in populate_roi
shapes = create_shapes(obj)
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/generate_xml.py", line 317, in create_shapes
lab = create_label(s)
File "/Users/pwalczysko/opt/anaconda3/envs/cli-transfer/lib/python3.7/site-packages/generate_xml.py", line 275, in create_label
args['font_size'] = shape.getFontSize().getValue()
AttributeError: 'NoneType' object has no attribute 'getValue'
pwalczysko commented
Note that if I draw a Text ROI in OMERO.iviewer, save it and then try to pack
the image, the operation succeeds.
erickmartins commented
thanks for the sleuthing - this just needs a sane default, I think.
erickmartins commented
0.3.3 should fix this. let me know!
erickmartins commented
Closing this for now - feel free to reopen if it's not working as intended.