fabio
index
/usr/lib/pymodules/python2.6/fabio/__init__.py

 
Package Contents
       
GEimage
GEimage_old
HiPiCimage
OXDimage
adscimage
bruker100image
brukerimage
cbfimage
cf_io
datIO
dm3image
edfimage
fabian_mar_header
fabioimage
file_series
fit2dmaskimage
fit2dspreadsheetimage
kcdimage
mar345_io
mar345image
marccdimage
openimage
pilatusimage
pnmimage
readbytestream
tifimage

 
Classes
       
filename_object

 
class filename_object
    The 'meaning' of a filename
 
  Methods defined here:
__init__(self, stem, num=None, directory=None, format=None, extension=None, postnum=None, digits=4)
str(self)
Return a string representation
tostring(self)
convert yourself to a string

 
Functions
       
construct_filename(*args, **kwds)
deconstruct_filename(filename)
Break up a filename to get image type and number
extract_filenumber(name)
extract file number
getnum(name)
# try to figure out a file number
# guess it starts at the back
jump_filename(name, num, padding=True)
jump to number
next_filename(name, padding=True)
increment number
numstem(name)
cant see how to do without reversing strings
Match 1 or more digits going backwards from the end of the string
previous_filename(name, padding=True)
decrement number

 
Data
        COMPRESSORS = {'.bz2': 'bzip2 -dc ', '.gz': 'gzip -dc '}
FILETYPES = {'cbf': ['cbf'], 'cbf.bz2': ['cbf'], 'cbf.gz': ['cbf'], 'cor': ['edf'], 'cor.bz2': ['edf'], 'cor.gz': ['edf'], 'dm3': ['dm3'], 'dm3.bz2': ['dm3'], 'dm3.gz': ['dm3'], 'edf': ['edf'], ...}
key = 'cbf'
lines = "bzip2, a block-sorting file compressor. Version...s, so `-v -4' means the same as -v4 or -4v, &c.\n\n"