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

Class _FEPIOSubBlockProperty

UserDict.DictMixin --+
                     |
                    _FEPIOSubBlockProperty

A dictionary of fepio sub-block properties. These can be accessed via the property name 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_fepio_x_coord', which indicates a real property named 'x coord', and 'i_user_my_count' which indicates an integer user property named 'my count'.

Instance Methods [hide private]
 
__init__(self, fep, index, type)
Create an instance of the property dictionary.
 
__getitem__(self, item)
Return the given item if it is a valid property for this item, None if not.
 
__setitem__(self, item, value)
Set properties for the given item.
 
keys(self)
Return a list of all property names.

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