Package schrodinger :: Package application :: Package desmond :: Module ffiostructure :: Class _FEPIOProperty
[hide private]
[frames] | no frames]

Class _FEPIOProperty

UserDict.DictMixin --+
                     |
                    _FEPIOProperty

A dictionary of fepio properties, with all dict methods. Properties can be accessed via the m2io dataname as it appears in the maestro file.

Property names must be m2io data names, which are in the format '<type>_<author>_<property_name>', where '<type>' is a data type prefix, '<author>' is a source specification, and '<property_name>' is the actual name of the data.

The data type prefix can specified as 's' for string, 'i' for integer, 'r' for real and 'b' for boolean. The author specification should be 'user' for user created properties. The property name can have embedded underscores.

Some example m2io datanames are 'r_m_x_coord', which indicates a real maestro property named 'x coord', and 'i_user_my_count' which indicates an integer user property named 'my count'.

To convert to the _FEPIOProperty to a real dictionary:

   d = dict(st.ffio.property)
Instance Methods [hide private]
 
__init__(self, handle)
Create an instance of the property 'dictionary' The instance is created when st.property is first used.
 
__getitem__(self, item)
 
__setitem__(self, item, value)
Set the item into the additional data handle.
 
keys(self)
Return a list of the names of all properties.

Inherited from UserDict.DictMixin: __cmp__, __contains__, __iter__, __len__, __repr__, clear, get, has_key, items, iteritems, iterkeys, itervalues, pop, popitem, setdefault, update, values

Method Details [hide private]

__setitem__(self, item, value)
(Index assignment operator)

 

Set the item into the additional data handle. Usage: st.fepio.property[<name>] = value