Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#198 closed task (fixed)

finish session molecular data save/restore

Reported by: Elaine Meng Owned by: Conrad Huang
Priority: blocker Milestone: Alpha Release
Component: Core Version:
Keywords: Cc: Greg Couch, Tom Goddard, pett
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description (last modified by pett)

Until finished, molecular structure save/restore produces a traceback.

Attachments (1)

junk.cxs.gz (2.0 KB ) - added by Elaine Meng 10 years ago.

Download all attachments as: .zip

Change History (12)

by Elaine Meng, 10 years ago

Attachment: junk.cxs.gz added

comment:1 by pett, 10 years ago

Description: modified (diff)
Status: newaccepted
Summary: traceback opening session saved with moleculefinish session molecular data save/restore
Type: defecttask

comment:2 by pett, 10 years ago

Component: Molecular DataCore

comment:3 by pett, 10 years ago

Cc: pett added; Conrad Huang removed
Owner: changed from pett to Conrad Huang
Status: acceptedassigned

Re-assigning to Conrad so that he can finish the Python-layer ribbon-related save/restore. I have placed comments in core/atomic/structure.py that start with "#RIBBON" describing the changes to make to actually initiate the save/restore of those values (currently they are simply set to their default values).

--Eric

comment:4 by Scooter Morris, 9 years ago

Milestone: Alpha Release

comment:5 by Conrad Huang, 9 years ago

Resolution: fixed
Status: assignedclosed

I made a first pass using Python-level code to save ribbon attributes. Eric fixed it by moving the attribute-saving code into C++ where it belongs.

comment:6 by pett, 9 years ago

Well, I only did Python->C++ for the attributes that I saw that Conrad had added to Python session saving. Namely:

ribbon orientation
show spline
tether shape
tether sides
mode helix
mode strand

Clearly there should be a bunch more (e.g. cross section). Either I missed where Conrad put them in the Python or Conrad didn't actually add them to session saving. Conrad?

comment:7 by pett, 9 years ago

Oops, also moved:

tether scale
tether opacity

comment:8 by pett, 9 years ago

Conrad sez he started with attributes that live in the C++ layer. So the Python-only attributes (such as cross section) haven't been done.

--Eric

comment:9 by Conrad Huang, 9 years ago

The cross section stuff are now done. I didn't see any other ribbon-related attributes, but I'm leaving this ticket open so that someone can speak up in case I missed something.

in reply to:  11 comment:10 by Elaine Meng, 9 years ago

If by cross-section stuff you mean only the xsection value, there’s also width and thickness that can be different for helix, strand, coil, and nucleic within a model, and the single-value per model settings: arrows (Bool), arrowsHelix (Bool), arrowScale, sides, barSides, barScale, see http://rbvi.ucsf.edu/chimerax/docs/user/commands/cartoon.html#style

I think Eric already listed all the tether stuff, though.

in reply to:  12 ; comment:11 by Conrad Huang, 9 years ago

No.  cross section stuff includes all of that.  The "XSectionManager" 
class took care of converting all those parameters into a single set of 
coordinates for each type of cross section.  Eric helped me add the code 
to make XSectionManager instances (there is one for each structure) into 
sessions.

Conrad

On 2/23/2017 9:52 AM, Elaine Meng wrote:
Note: See TracTickets for help on using tickets.