
Hi ChimeraX developers, I have been tryinng to use 2dlabel to annotate some things in a movie. I have stumbled accross a number of problems: 1) creating 2 labels with the same name causes a crasH: 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

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

Hi Lukas, Thanks for the bug reports. When you got the traceback the error dialog should have had a "Report Bug" button on it. Or you can use ChimeraX menu Help / Report a Bug. That is the best way to report because it tells us what ChimeraX version, operating system, includes the traceback, and automatically puts it into our bug tracking system. For this bug I have made the bug report https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/3447 <https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/3447> Should be able to fix these problems today. Tom
On Jun 26, 2020, at 2:19 AM, Lukas Kater wrote:
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
_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

Hi Lukas, Your errors are with the "2dlabel create" command which is not a documented command in ChimeraX. It is there for backwards compatibility with Chimera but best to use the ChimeraX 2dlabel syntax as described in the documentation since the undocumented form may be removed in the future. https://www.cgl.ucsf.edu/chimerax/docs/user/commands/2dlabels.html <https://www.cgl.ucsf.edu/chimerax/docs/user/commands/2dlabels.html> I have fixed the undocumented "2dlabel create" so if you try to create a second label with the same id name it gives a simple error message instead of a traceback, and I fixed the initial visibility. Neither of these bugs were present in the documented command. Tom
On Jun 26, 2020, at 10:02 AM, Tom Goddard <goddard@sonic.net> wrote:
Hi Lukas,
Thanks for the bug reports. When you got the traceback the error dialog should have had a "Report Bug" button on it. Or you can use ChimeraX menu Help / Report a Bug. That is the best way to report because it tells us what ChimeraX version, operating system, includes the traceback, and automatically puts it into our bug tracking system. For this bug I have made the bug report
https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/3447 <https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/3447>
Should be able to fix these problems today.
Tom
On Jun 26, 2020, at 2:19 AM, Lukas Kater wrote:
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
_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu <mailto:ChimeraX-users@cgl.ucsf.edu> Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
participants (2)
-
Lukas Kater
-
Tom Goddard