PseudoMap
(class from pyomo.core.base.block
)
- class pyomo.core.base.block.PseudoMap(block, ctype, active=None, sort=False)[source]
Bases:
Mixin
This class presents a “mock” dict interface to the internal BlockData data structures. We return this object to the user to preserve the historical “{ctype : {name : obj}}” interface without actually regenerating that dict-of-dicts data structure.
We now support {ctype : PseudoMap()}
Methods
__init__
(block, ctype[, active, sort])TODO
items
()Generator returning (name, component) tuples for components defined on the Block
DEPRECATED.
iterkeys
()DEPRECATED.
DEPRECATED.
keys
()Generator returning the component names defined on the Block
values
()Generator returning the components defined on the Block
Member Documentation
- iteritems()[source]
DEPRECATED.
Generator returning (name, component) tuples for components defined on the Block
Deprecated since version 6.0: The iteritems method is deprecated. Use dict.items().
- iterkeys()[source]
DEPRECATED.
Generator returning the component names defined on the Block
Deprecated since version 6.0: The iterkeys method is deprecated. Use dict.keys().