Opened 6 years ago
Closed 6 years ago
#2865 closed defect (fixed)
Problem saving MRC/PDB: name 'model' is not defined
Reported by: | Owned by: | Tom Goddard | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Input/Output | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
The following bug report has been submitted: Platform: Darwin-18.7.0-x86_64-i386-64bit ChimeraX Version: 0.92 (2020-02-19) Description Just trying to save as a mrc resulted in an error. Of course, this is my fault (I opened pdb file). Log: Startup Messages --- warning | Populating font family aliases took 560 ms. Replace uses of missing font family "Lucida Sans" with one that exists to avoid this cost. UCSF ChimeraX version: 0.92 (2020-02-19) © 2016-2020 Regents of the University of California. All rights reserved. How to cite UCSF ChimeraX > open /Users/kimd999/Projects/AI/MARS/structures/PDX1_2/PDX1_2.pdb File not found: /Users/kimd999/Projects/AI/MARS/structures/PDX1_2/PDX1_2.pdb > open > /Users/kimd999/Projects/AI/MARS/structures/PDX1_2/rotated/PDX1_2_x_30_y_30.pdb Chain information for PDX1_2_x_30_y_30.pdb #1 --- Chain | Description A B C D E F G H I J K X | No description available > save data%dmodel.mrc models #1 Traceback (most recent call last): File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/cmd_line/tool.py", line 258, in execute cmd.run(cmd_text) File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/core/commands/cli.py", line 2837, in run result = ci.function(session, **kw_args) File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/core/commands/save.py", line 61, in save fmt.export(session, filename, fmt.nicknames[0], **kw) File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/core/io.py", line 229, in export result = self.export_func(session, path, **kw) File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/map/volume.py", line 3560, in save_map mstring = ' (#%s)' % ','.join(model.id_string for m in models) if models else '' File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/map/volume.py", line 3560, in <genexpr> mstring = ' (#%s)' % ','.join(model.id_string for m in models) if models else '' NameError: name 'model' is not defined NameError: name 'model' is not defined File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/map/volume.py", line 3560, in mstring = ' (#%s)' % ','.join(model.id_string for m in models) if models else '' See log for complete Python traceback. > save data%dmodel.mrc models #1 Traceback (most recent call last): File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/cmd_line/tool.py", line 258, in execute cmd.run(cmd_text) File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/core/commands/cli.py", line 2837, in run result = ci.function(session, **kw_args) File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/core/commands/save.py", line 61, in save fmt.export(session, filename, fmt.nicknames[0], **kw) File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/core/io.py", line 229, in export result = self.export_func(session, path, **kw) File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/map/volume.py", line 3560, in save_map mstring = ' (#%s)' % ','.join(model.id_string for m in models) if models else '' File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/map/volume.py", line 3560, in <genexpr> mstring = ' (#%s)' % ','.join(model.id_string for m in models) if models else '' NameError: name 'model' is not defined NameError: name 'model' is not defined File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/map/volume.py", line 3560, in mstring = ' (#%s)' % ','.join(model.id_string for m in models) if models else '' See log for complete Python traceback. OpenGL version: 4.1 INTEL-12.10.14 OpenGL renderer: Intel(R) Iris(TM) Plus Graphics 655 OpenGL vendor: Intel Inc.
Change History (2)
comment:1 by , 6 years ago
Component: | Unassigned → Input/Output |
---|---|
Owner: | set to |
Platform: | → all |
Project: | → ChimeraX |
Status: | new → assigned |
Summary: | ChimeraX bug report submission → Problem saving MRC/PDB: name 'model' is not defined |
comment:2 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Fixed.
The error message was supposed to say you specified a model that was not a map, but the code had a typo. Thanks for reporting the problem -- clear error messages are important.