Package mmLib :: Module mmTypes
[show private | hide private]
[frames | no frames]

Module mmLib.mmTypes

Specialized types used by mmLib. In some cases the types are custom, and the code for those is here. Inother cases the types are imported from other Python packages.
Classes
FragmentID A fragment ID class acts a lot like a string, but separates the res_seq and icode internally.

Function Summary
  debug(x)
Writes debugging output to the file given in the environment variable MMLIB_DEBUG.
  OpenFile(path, mode)
Right now this only supports opening GZip'ed files, in the future it might be extended for URLs.
  setmap(smap, skey, dmap, dkey)
Sets the dmap/dkey with the value from smap/skey/
  setmapf(smap, skey, dmap, dkey)
Sets the dmap/dkey with the float value from smap/skey or default if not smap/skey value is found.
  setmapfd(smap, skey, dmap, dkey, default)
Sets the dmap/dkey with the float value from smap/skey or default if not smap/skey value is found.
  setmapi(smap, skey, dmap, dkey)
Sets the dmap/dkey with the integer value from smap/skey.
  setmapid(smap, skey, dmap, dkey, default)
Sets the dmap/dkey with the integer value from smap/skey or default if not smap/skey value is found.
  setmaps(smap, skey, dmap, dkey)
Sets the dmap/dkey with the string value from smap/skey/
  setmapsd(smap, skey, dmap, dkey)
Sets the dmap/dkey with the string value from smap/skey or default if not smap/skey value is found.
  warning(x)
Writes warnings out to the file given in the environment variable MMLIB_WARNING.

Variable Summary
float b2u = 78.956835208714864                                                    
float B2U = 78.956835208714864                                                    
float DEG2RAD = 0.017453292519943295                                                  
float deg2rad = 0.017453292519943295                                                  
float DEG2RAD2 = 0.00030461741978670857                                                
float deg2rad2 = 0.00030461741978670857                                                
float RAD2DEG = 57.295779513082323                                                    
float rad2deg = 57.295779513082323                                                    
float RAD2DEG2 = 3282.8063500117441                                                    
float rad2deg2 = 3282.8063500117441                                                    
float u2b = 0.012665147955292222                                                  
float U2B = 0.012665147955292222                                                  

Function Details

debug(x)

Writes debugging output to the file given in the environment variable MMLIB_DEBUG. This can be set to a file path, "stdout", "stderr", or a empty string for no action. It writes to the file mmlib_warning.txt by default.

OpenFile(path, mode)

Right now this only supports opening GZip'ed files, in the future it might be extended for URLs.

setmap(smap, skey, dmap, dkey)

Sets the dmap/dkey with the value from smap/skey/

setmapf(smap, skey, dmap, dkey)

Sets the dmap/dkey with the float value from smap/skey or default if not smap/skey value is found.

setmapfd(smap, skey, dmap, dkey, default=None)

Sets the dmap/dkey with the float value from smap/skey or default if not smap/skey value is found.

setmapi(smap, skey, dmap, dkey)

Sets the dmap/dkey with the integer value from smap/skey.

setmapid(smap, skey, dmap, dkey, default=None)

Sets the dmap/dkey with the integer value from smap/skey or default if not smap/skey value is found.

setmaps(smap, skey, dmap, dkey)

Sets the dmap/dkey with the string value from smap/skey/

setmapsd(smap, skey, dmap, dkey)

Sets the dmap/dkey with the string value from smap/skey or default if not smap/skey value is found.

warning(x)

Writes warnings out to the file given in the environment variable MMLIB_WARNING. This can be set to a file path, "stdout", "stderr", or a empty string for no action. It writes to the file mmlib_warning.txt by default.

Variable Details

b2u

Type:
float
Value:
78.956835208714864                                                    

B2U

Type:
float
Value:
78.956835208714864                                                    

DEG2RAD

Type:
float
Value:
0.017453292519943295                                                  

deg2rad

Type:
float
Value:
0.017453292519943295                                                  

DEG2RAD2

Type:
float
Value:
0.00030461741978670857                                                

deg2rad2

Type:
float
Value:
0.00030461741978670857                                                

RAD2DEG

Type:
float
Value:
57.295779513082323                                                    

rad2deg

Type:
float
Value:
57.295779513082323                                                    

RAD2DEG2

Type:
float
Value:
3282.8063500117441                                                    

rad2deg2

Type:
float
Value:
3282.8063500117441                                                    

u2b

Type:
float
Value:
0.012665147955292222                                                  

U2B

Type:
float
Value:
0.012665147955292222                                                  

Generated by Epydoc 2.0 on Wed Nov 24 17:34:57 2004 http://epydoc.sf.net