Package schrodinger :: Package application :: Package desmond :: Module maestro :: Class NewEntry
[hide private]
[frames] | no frames]

Class NewEntry

object --+
         |
        NewEntry

A class for representing a structure that can be included/excluded in the Workspace.

Instance Methods [hide private]
 
__init__(self, ct)
x.__init__(...) initializes x; see help(type(x)) for signature
 
_updateProp(self)
 
asl(self)
 
set_readonly(self, readonly=True)
Sets this entry to be readonly if 'readonly' is True.
 
set_deletable(self, deletable=True)
Sets this entry to be deletable if 'deletable' is True.
 
updateToWorkspace(self)
 
show(self)
Shows the CT in Maestro workspace.
 
show_only(self)
Shows the CT in Maestro workspace and hides other CTs.
 
hide(self)
 
is_shown(self)
Returns True if this entry is already included into the Workspace.
 
commit(self)
Commits any belonging change in the current workspace to this entry.
 
rename(self, name)
Changes the entry name to 'name'.
 
get_ct(self, copy=False)
Returns a 'Structure' object of the CT of this entry.
 
write(self, fname, mode='')
Writes the CT to a file, whose name is given by 'fname'.
 
deleteAtomsByAsl(self, asl)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  last_entry_unique_id = 0
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ct)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

set_readonly(self, readonly=True)

 

Sets this entry to be readonly if 'readonly' is True. If 'readonly' is False, sets this entry to be not readonly.

set_deletable(self, deletable=True)

 

Sets this entry to be deletable if 'deletable' is True. If 'deletable' is False, sets this entry to be undeletable.

write(self, fname, mode='')

 

Writes the CT to a file, whose name is given by 'fname'. The format of the file is determined by the extension name of 'fname'.

Parameters:
  • mode - If set to 'a', then instead of overwriting, this function will append the structure to the end of the file.