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

Public Member Functions

def __getattr__
 
def __setattr__
 
def __dir__
 
def set_with_dict
 

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 925 of file read_grid.py.

Member Function Documentation

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

Definition at line 942 of file read_grid.py.

943  def __dir__(self):
944  """ necessary for Ipython tab-completion """
945  return self.keys()
def flextest.flexread.read_grid.Structure.__getattr__ (   self,
  attr 
)

Definition at line 933 of file read_grid.py.

934  def __getattr__(self, attr):
935  # Fake a __getstate__ method that returns None
936  if attr == "__getstate__":
937  return lambda: None
938  return self[attr]
def flextest.flexread.read_grid.Structure.__setattr__ (   self,
  attr,
  value 
)

Definition at line 939 of file read_grid.py.

940  def __setattr__(self, attr, value):
941  self[attr] = value
def flextest.flexread.read_grid.Structure.set_with_dict (   self,
  D 
)
set attributes with a dict 

Definition at line 946 of file read_grid.py.

947  def set_with_dict(self, D):
948  """ set attributes with a dict """
949  for k in D.keys():
950  self.__setattr__(k, D[k])
951 

Here is the call graph for this function:


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