Trees | Indices | Help |
|
---|
|
object --+ | ProjectRow
ProjectRow allows access to the structure and properties of an entry in the project. It is an access mechanism and not a completely self-contained object - project row objects should be treated as transient, they may become invalid by subsequent project operations. This class represents a project entry. Each row is linked to one entry, but row != entry There are 3 ways to identify a row: ProjectRow.index: Internal project order, entry in project - NOT sorted and NOT same as entry_id. ProjectRow.row_number: Table row position - changes when table is sorted ProjectRow.entry_id: ID of the entry represented by this row, never changes. Normally it won't be necessary to create an explicit ProjectRow object, one will be returned by indexing into a ProjectTable object
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
surface.Surface |
|
||
|
|||
|
|||
|
|||
Inherited from |
|
|||
structure = property(_getStructure, _setStructure, doc=
|
|||
title = property(_getTitle, _setTitle, doc= "The title of the
|
|||
index = property(_getProjectIndex, doc= "Internal Project inde
|
|||
entry_id = property(_getEntryID, doc= "Entry ID of the row")
|
|||
group = property(_getGroup, doc= "EntryGroup for the row")
|
|||
doc = "Inclusion state of the entry (NOT_IN_WORKSPACE/IN_WORKS
|
|||
in_workspace = property(_getEntryInWorkspace, _setEntryInWorks
|
|||
is_selected = property(_getEntryIsSelected, _setEntryIsSelecte
|
|||
read_only = property(_getEntryIsReadOnly, _setEntryIsReadOnly,
|
|||
deletable = property(_getEntryIsDeletable, _setEntryIsDeletabl
|
|||
cms_structure_reader = property(_getCMSStructureReader, doc= "
|
|||
cms_file = property(_getCMSFile, doc= "Return associated CMS f
|
|||
surfaces = property(_getSurfaces, doc= "Return an interator to
|
|
|||
Inherited from |
|
Construct a ProjectRow for the given Project instance based on an entry index.
|
Return string representation
|
Returns: Structure: The entry's structure Arguments: props: True - Associated properties are included in the returned Structure. False - Associated properties are excluded from the returne Structure. copy: True - Makes and returns a duplicate of the entry's CT False - Returns the original CT for the entry WARNING: The current default (copy=True) is to make a duplicate of the entry's structure. These will be marked for garbage collection once they go out of scope in the calling code, but if, for example, you are in a loop your memory usage will grow until the loop is exited (and it may even take a while for it to drop since garbage collection is not necessarily immediate). This can cause large memory usage if, for example, you are iterating over a large number entries. In some cases you may want to explicitly delete the returned Structure. For example, in a loop iterating over a large number of entries you may want to delete the Structure while still in the loop (after you're done processing the Structure) to prevent memory bloat. |
Set the structure of the entry to the specified structure. Arguments: struct (required) - Set the entry to this Structure object copy (optional, default True) - If True, a copy of the Structure (CT) is made and that copy is used to set the entry. If False, the original Structure, struct, is placed into the project table. Doing this hands off control of struct and you should no longer use struct. props (option, default True) - If True, update properties in the entry. If False, properties are ignored. |
Return property value of C{prop} corresponding to ProjectRow object. Return None if the property doesn't exist. C{prop} acts as the key. For example, title = proj_row['Title'] |
Set the C{value} for C{prop} in the ProjectRow object. C{prop} acts as the key of the property. For example, proj_row['Title'] = "Karthik" |
Delete the property C{prop} from ProjectRow object. In addition, this clears the cell in the project table. For example, del proj_row["Title"] |
Obsolete. Use ProjectRow.in_workspace property instead. |
The index property is not the same as Project Table row. This property indicates what order entries were added to the project. This can change when an entry in the project is deleted. |
This is the Project Table row number, as it appears to the user in Maestro. It is different from the internal row index.
|
If there is no associated cms file, then we return an empty iterator. This allows you to always just write a loop: for i in cms_structure_reader: and avoid checking if cms_structure_reader exists. If it does not, the loop will do nothing. If there is an associated cms file, then we return a StructureReader that allows one to retrieve the data by iterating. |
Returns the file instead of the reader. This is more convenient to use than the reader in some cases. If there is no associated cms file, then we return None. |
Create a new molecular surface for this row
|
A dictionary of all surfaces for this row. Keys are surface names and values are surface.Surface objects.
|
Move this entry to group. If group does not exist it will be created.
|
|
structure
|
title
|
index
|
doc
|
in_workspace
|
is_selected
|
read_only
|
deletable
|
cms_structure_reader
|
cms_file
|
surfaces
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:47 2015 | http://epydoc.sourceforge.net |