FLEXPART Testing Environment CTBTO WO8
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
flextest.flexread.pflexible.Structure Class Reference
Inheritance diagram for flextest.flexread.pflexible.Structure:
Inheritance graph
[legend]
Collaboration diagram for flextest.flexread.pflexible.Structure:
Collaboration graph
[legend]

Public Member Functions

def __getattr__
 
def __setattr__
 
def __dir__
 
def set_with_dict
 
def __dir__
 

Detailed Description

A 'fancy' dictionary that provides 'MatLab' structure-like
referencing. 

.. warning::
    may be replaced with a pure dict in future release.

Definition at line 4664 of file pflexible.py.

Member Function Documentation

def flextest.flexread.pflexible.Structure.__dir__ (   self)
necessary for Ipython tab-completion 

Definition at line 4681 of file pflexible.py.

4682  def __dir__(self):
4683  """ necessary for Ipython tab-completion """
4684  return self.keys()
def flextest.flexread.pflexible.Structure.__dir__ (   self)

Definition at line 4690 of file pflexible.py.

4691  def __dir__(self):
4692  return self.keys()

Here is the call graph for this function:

def flextest.flexread.pflexible.Structure.__getattr__ (   self,
  attr 
)

Definition at line 4672 of file pflexible.py.

4673  def __getattr__(self, attr):
4674  # Fake a __getstate__ method that returns None
4675  if attr == "__getstate__":
4676  return lambda: None
4677  return self[attr]
def flextest.flexread.pflexible.Structure.__setattr__ (   self,
  attr,
  value 
)

Definition at line 4678 of file pflexible.py.

4679  def __setattr__(self, attr, value):
4680  self[attr] = value
def flextest.flexread.pflexible.Structure.set_with_dict (   self,
  D 
)
set attributes with a dict 

Definition at line 4685 of file pflexible.py.

4686  def set_with_dict(self, D):
4687  """ set attributes with a dict """
4688  for k in D.keys():
4689  self.__setattr__(k, D[k])

Here is the call graph for this function:


The documentation for this class was generated from the following file: