PyCos.py

Go to the documentation of this file.
00001 # This file was created automatically by SWIG 1.3.29.
00002 # Don't modify this file, modify the SWIG interface instead.
00003 # This file is compatible with both classic and new-style classes.
00004 
00005 import _PyCos
00006 import new
00007 new_instancemethod = new.instancemethod
00008 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
00009     if (name == "thisown"): return self.this.own(value)
00010     if (name == "this"):
00011         if type(value).__name__ == 'PySwigObject':
00012             self.__dict__[name] = value
00013             return
00014     method = class_type.__swig_setmethods__.get(name,None)
00015     if method: return method(self,value)
00016     if (not static) or hasattr(self,name):
00017         self.__dict__[name] = value
00018     else:
00019         raise AttributeError("You cannot add attributes to %s" % self)
00020 
00021 def _swig_setattr(self,class_type,name,value):
00022     return _swig_setattr_nondynamic(self,class_type,name,value,0)
00023 
00024 def _swig_getattr(self,class_type,name):
00025     if (name == "thisown"): return self.this.own()
00026     method = class_type.__swig_getmethods__.get(name,None)
00027     if method: return method(self)
00028     raise AttributeError,name
00029 
00030 def _swig_repr(self):
00031     try: strthis = "proxy of " + self.this.__repr__()
00032     except: strthis = ""
00033     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
00034 
00035 import types
00036 try:
00037     _object = types.ObjectType
00038     _newclass = 1
00039 except AttributeError:
00040     class _object : pass
00041     _newclass = 0
00042 del types
00043 
00044 
00045 class Cosmology(_object):
00046     __swig_setmethods__ = {}
00047     __setattr__ = lambda self, name, value: _swig_setattr(self, Cosmology, name, value)
00048     __swig_getmethods__ = {}
00049     __getattr__ = lambda self, name: _swig_getattr(self, Cosmology, name)
00050     __repr__ = _swig_repr
00051     def __init__(self, *args): 
00052         this = _PyCos.new_Cosmology(*args)
00053         try: self.this.append(this)
00054         except: self.this = this
00055     __swig_destroy__ = _PyCos.delete_Cosmology
00056     __del__ = lambda self : None;
00057     def D_C(*args): return _PyCos.Cosmology_D_C(*args)
00058     def D_M(*args): return _PyCos.Cosmology_D_M(*args)
00059     def ang_dist(*args): return _PyCos.Cosmology_ang_dist(*args)
00060     def ang_dist_z1_z2(*args): return _PyCos.Cosmology_ang_dist_z1_z2(*args)
00061     def lum_dist(*args): return _PyCos.Cosmology_lum_dist(*args)
00062     def unit_comoving_volume(*args): return _PyCos.Cosmology_unit_comoving_volume(*args)
00063     def comoving_volume_z1_z2(*args): return _PyCos.Cosmology_comoving_volume_z1_z2(*args)
00064     def comoving_volume_0_z(*args): return _PyCos.Cosmology_comoving_volume_0_z(*args)
00065     def lookback_time(*args): return _PyCos.Cosmology_lookback_time(*args)
00066     def age(*args): return _PyCos.Cosmology_age(*args)
00067     def age_now(*args): return _PyCos.Cosmology_age_now(*args)
00068 Cosmology_swigregister = _PyCos.Cosmology_swigregister
00069 Cosmology_swigregister(Cosmology)
00070 
00071 E_z = _PyCos.E_z
00072 time_integral = _PyCos.time_integral
00073 schechter = _PyCos.schechter
00074 number_schechter = _PyCos.number_schechter
00075 total_number_schechter = _PyCos.total_number_schechter
00076 luminosity_schechter = _PyCos.luminosity_schechter
00077 total_luminosity_schechter = _PyCos.total_luminosity_schechter
00078 
00079 

Generated on Mon May 3 21:06:13 2010 for PyCos by  doxygen 1.4.7