[chimerax-users] chimerax label bug
Tom Goddard
goddard at sonic.net
Fri Jun 26 10:02:43 PDT 2020
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 at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20200626/b44e8013/attachment.html>
More information about the ChimeraX-users
mailing list