[chimerax-users] chimerax label bug

Lukas Kater kater at genzentrum.lmu.de
Fri Jun 26 02:19:00 PDT 2020


Hi ChimeraX developers,

Sorry about that previous email...

Please let me know if there is a better way to report bugs.

I have been trying to use 2dlabel to annotate some things in a movie. I 
have stumbled across a number of problems:

1) creating 2 labels with the same name causes a crash (v1 quits and 
daily build just displays the log bellow under Fedora 32):
2dlab create ADP text "ADP state" color black size 26 bold true xpos 
0.03 ypos 0.92 visibility false
2dlab create ADP text "ADP state" color black size 26 bold true xpos 
0.03 ypos 0.92 visibility false

Traceback (most recent call last):
   File 
"/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/cmd_line/tool.py", 
line 263, in execute
     cmd.run(cmd_text)
   File 
"/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/core/commands/cli.py", 
line 2805, in run
     result = ci.function(session, **kw_args)
   File 
"/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/label/label2d.py", 
line 88, in label_create
     return Label(session, name, **kw)
   File 
"/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/label/label2d.py", 
line 512, in __init__
     lb.add_label(self)
   File 
"/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/label/label2d.py", 
line 400, in add_label
     nl.delete()
   File 
"/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/label/label2d.py", 
line 530, in delete
     lm.delete_label(self)
   File 
"/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/label/label2d.py", 
line 417, in delete_label
     self._labels.remove(label)
ValueError: list.remove(x): x not in list

ValueError: list.remove(x): x not in list

File 
"/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/label/label2d.py", 
line 417, in delete_label
self._labels.remove(label)

See log for complete Python traceback.


2) set bgColor hides labels
2dlab create ADP text "ADP state" color black size 26 bold true xpos 
0.03 ypos 0.92 visibility false
# label is there (although visibility false?!)
set bgColor white
#label is gone

3) labels created with visibility false are still displayed
see above. But I can change visibility with 2dlab change

Thanks for any help!

Lukas Kater






More information about the ChimeraX-users mailing list