Package diffpy :: Package srrietveld :: Module utility
[frames] | no frames]

Module utility

source code

Common shared functions that do not fit anywhere else.

Classes
  UTF8Recoder
Iterator that reads an encoded stream and reencodes the input to UTF-8
  UnicodeReader
A CSV reader which will iterate over lines in the CSV file "f", which is encoded in the given encoding.
  UnicodeWriter
A CSV writer which will write rows to CSV file "f", which is encoded in the given encoding.
Functions
 
checkFormat(filename)
Check the format of input file
source code
 
getFileid(fullpath)
get the md5 id of the file path fullpath - the abs path of the file return - the file path
source code
 
importClass(modpath, modname, classname, *args)
Import certain class with certain inputs
source code
 
parseXYToList(filename)
Parse XY or XYSigma data to list
source code
 
printDebugInfo()
Print the information for debug
source code
 
printWarning(warningMsg)
Print a red warning message to the std output warningMsg : the warning message to be printed
source code
 
unique(seq)
Get unique items from a sequence while keeping its original order
source code
Variables
  __package__ = 'diffpy.srrietveld'

Imports: cStringIO, codecs, csv, md5, os, sys, traceback