|
def | __init__ (self, *args, **kwds) |
|
def | pretty_name (self, name) |
|
def | __getattribute__ (self, name) |
|
def | __setattr__ (self, name, value) |
|
def | __getitem__ (self, name) |
|
def | __setitem__ (self, name, value) |
|
def | __delitem__ (self, name) |
|
def | __contains__ (self, name) |
|
def | __init__ (self, *args, **kwds) |
|
def | pretty_name (self, name) |
|
def | __getattribute__ (self, name) |
|
def | __setattr__ (self, name, value) |
|
def | __getitem__ (self, name) |
|
def | __setitem__ (self, name, value) |
|
def | __delitem__ (self, name) |
|
def | __contains__ (self, name) |
|
IBIS parse results object.
This object typically represents a section with named children.
Because most IBIS keywords are case insensitive and many even don't
distinguish between and '_' and ' ', this class allows loose access to
children. All children are stored by their 'pretty_name', such as
"Number of Sections". When an access is made, it is translated to a
'simple_name' by lower() and translating ' ' and '/' to '_', '+' to 'p',
and '-' to 'n'. The pretty_name is then looked up in an internal dict.
The pretty_name is then used to find the child.
In addition to normal dict() accessors, '__getattribute__' can also be
used. For example, 'obj["Vinl+"] and obj.vinlp both work.