FLEXPART Testing Environment CTBTO WO8
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
flextest.flexread.read_header.Structure Class Reference
Inheritance diagram for flextest.flexread.read_header.Structure:
Inheritance graph
[legend]
Collaboration diagram for flextest.flexread.read_header.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 749 of file read_header.py.

Member Function Documentation

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

Definition at line 766 of file read_header.py.

767  def __dir__(self):
768  """ necessary for Ipython tab-completion """
769  return self.keys()
def flextest.flexread.read_header.Structure.__dir__ (   self)

Definition at line 775 of file read_header.py.

776  def __dir__(self):
777  return self.keys()

Here is the call graph for this function:

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

Definition at line 757 of file read_header.py.

758  def __getattr__(self, attr):
759  # Fake a __getstate__ method that returns None
760  if attr == "__getstate__":
761  return lambda: None
762  return self[attr]
def flextest.flexread.read_header.Structure.__setattr__ (   self,
  attr,
  value 
)

Definition at line 763 of file read_header.py.

764  def __setattr__(self, attr, value):
765  self[attr] = value
def flextest.flexread.read_header.Structure.set_with_dict (   self,
  D 
)
set attributes with a dict 

Definition at line 770 of file read_header.py.

771  def set_with_dict(self, D):
772  """ set attributes with a dict """
773  for k in D.keys():
774  self.__setattr__(k, D[k])

Here is the call graph for this function:


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