Package reflectometry :: Package reduction :: Module icpformat

Module icpformat

source code

ICP data reader.

summary(filename) - reads the header information read(filename) - reads header information and data

Classes
  Lattice
  Motor
  MotorSet
  ColumnSet
  ICP
Functions
 
readdata(fh)
Read ICP data, including PSD data if lines contain commas.
source code
 
get_tokenized_line(file)
Read the next line of text into a set of words.
source code
 
get_quoted_tokens(file)
Build a token list from a line which can be a mix of quoted strings and unquoted values separated by spaces.
source code
 
read(filename)
Read an ICP file and return the corresponding ICP file object
source code
 
summary(filename)
Read an ICP file header and return the corresponding ICP file object
source code
 
gzopen(filename, mode='r')
Open file or gzip file
source code
 
asdata(icp) source code
 
data(filename) source code
 
message(text) source code
 
question(text) source code
 
demo()
Read and print all command line arguments
source code
 
plot(filename)
Read and print all command line arguments
source code
 
plot_demo() source code
Function Details

get_quoted_tokens(file)

source code 
Build a token list from a line which can be a mix of quoted strings and unquoted values separated by spaces. Uses single quotes only. Does not test for escaped single quotes.