Table of Contents

Module: misc bkchem/oasa/oasa/misc.py

module containing miscelanous functions used in BKchem that don't fit anywhere else. Does not contain any objects

Imported modules   
import math
import re
import string
import time
import types
from warnings import warn
Functions   
difference
filter_unique
intersection
lazy_apply
list_difference
normalize_coords
reverse_molecule_formula
signum
split_number_and_unit
  difference 
difference ( a,  b )

returns difference of 2 lists ( a-b)

  filter_unique 
filter_unique ( items )

  intersection 
intersection ( a,  b )

returns intersection of 2 lists

  lazy_apply 
lazy_apply ( function,  arguments )

similar to apply but returns a callable (lambda) that performs the apply when called.

  list_difference 
list_difference ( list )

return a list of differences between list members, the list is by 1 shorter than the original

  normalize_coords 
normalize_coords ( coords )

  reverse_molecule_formula 
reverse_molecule_formula ( formula )

  signum 
signum ( a )

  split_number_and_unit 
split_number_and_unit ( txt )


Table of Contents

This document was automatically generated on Fri Nov 19 12:52:55 2004 by HappyDoc version 2.1