Opened 7 years ago
Closed 7 years ago
#1792 closed defect (fixed)
command "preset cartoon" TypeError: expected 1 arguments, got 0
Reported by: | Elaine Meng | Owned by: | pett |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
The following bug report has been submitted: Platform: Darwin-17.7.0-x86_64-i386-64bit ChimeraX Version: 0.9 (2019-03-18) Description "preset cartoon" gives traceback ... I guess because both category and preset name could start with "cartoon"? Log: > open /Users/meng/Desktop/startup.cxc > alias reset view orient; view initial > open presets.cxc > alias cardef car style modeh def arrows t arrowshelix f arrowscale 2 wid 2 thick 0.4 sides 12 div 20; car style ~(nucleic|strand) x round; car style (nucleic|strand) x rect > alias nospheres style (protein|nucleic) & @@draw_mode=0 stick > alias nucrib cardef; car style nucleic x round width 1.6 thick 1.6 > alias cylinders cardef; car style protein modeh tube rad 2 sides 24 thick 0.6 > alias licorice cardef; car style protein modeh default arrows f x round width 1 thick 1 > alias cartoon1 surf hide; nospheres; cartoon; cardef; nuc tube/slab shape box > alias cartoon2 surf hide; nospheres; cartoon; cylinders; car style nucleic x round width 1.6 thick 1.6; nuc stubs > alias cartoon3 surf hide; nospheres; cartoon; licorice; car style nucleic x round width 1.6 thick 1.6; nuc tube/slab shape ellipsoid > alias surfw nospheres; surface; color white targ s trans 80 > alias surfa nospheres; surface; color fromatoms targ s trans 70 Alias "surfa" hides existing command > alias surfc nospheres; surface; color bychain targ s trans 0 > alias surfm nospheres; surface; color bymodel targ s trans 0 > alias pub set bgcolor white silhouettes t > alias unpub ~set bgcolor; set silhouettes f executed presets.cxc executed startup.cxc UCSF ChimeraX version: 0.9 (2019-03-18) © 2016-2019 Regents of the University of California. All rights reserved. How to cite UCSF ChimeraX > open 6cmn format mmCIF fromDatabase pdb Summary of feedback from opening 6cmn fetched from pdb --- warning | Atom HO5' is not in the residue template for G #18 in chain D 6cmn title: Co-Crystal Structure of HIV-1 TAR Bound to Lab-Evolved RRM TBP6.7 [more info...] Chain information for 6cmn #1 --- Chain | Description A | TAR-Binding Protein 6.7 D | Trans-Activation Response RNA Element > preset '"initial styles"' "space-filling (single color)" Preset implemented in Python; no expansion to individual ChimeraX commands available. > preset cartoon Traceback (most recent call last): File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/cmd_line/tool.py", line 253, in execute cmd.run(cmd_text) File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/core/commands/cli.py", line 2617, in run result = ci.function(session, **kw_args) File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/preset_mgr/cmd.py", line 35, in preset_cmd match_all_presets(session, preset_text, preset_map) File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/preset_mgr/cmd.py", line 61, in match_all_presets if matches[0] in presets: File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/core/utils.py", line 167, in __eq__ return super.__eq__(other) TypeError: expected 1 arguments, got 0 TypeError: expected 1 arguments, got 0 File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/core/utils.py", line 167, in __eq__ return super.__eq__(other) See log for complete Python traceback. OpenGL version: 4.1 INTEL-10.36.23 OpenGL renderer: Intel Iris Pro OpenGL Engine OpenGL vendor: Intel Inc.
Change History (3)
comment:1 by , 7 years ago
Component: | Unassigned → Depiction |
---|---|
Owner: | set to |
Platform: | → all |
Project: | → ChimeraX |
Status: | new → assigned |
Summary: | ChimeraX bug report submission → command "preset cartoon" TypeError: expected 1 arguments, got 0 |
comment:2 by , 7 years ago
Component: | Depiction → Core |
---|---|
Status: | assigned → accepted |
comment:3 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Missed some parens in a custom-sortable-string class I implemented. Fixed now.
Note:
See TracTickets
for help on using tickets.
however, "preset init cartoon" works fine