Package fabio :: Module fabioutils :: Class FilenameObject
[hide private]
[frames] | no frames]

Class FilenameObject

source code

object --+
         |
        FilenameObject

The 'meaning' of a filename ...

Instance Methods [hide private]
 
__init__(self, stem=None, num=None, directory=None, format=None, extension=None, postnum=None, digits=4, filename=None)
This class can either be instanciated by a set of parameters like directory, prefix, num, extension, ...
source code
 
str(self)
Return a string representation
source code
 
__repr__(self)
Return a string representation
source code
 
tostring(self)
convert yourself to a string
source code
 
deconstruct_filename(self, filename)
Break up a filename to get image type and number
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, stem=None, num=None, directory=None, format=None, extension=None, postnum=None, digits=4, filename=None)
(Constructor)

source code 

This class can either be instanciated by a set of parameters like directory, prefix, num, extension, ...

Parameters:
  • stem - the stem is a kind of prefix (str)
  • num - image number in the serie (int)
  • directory - name of the directory (str)
  • format - ??
  • extension
  • postnum
  • digits - Number of digits used to print num

    Alternative constructor:

  • filename - fullpath of an image file to be deconstructed into directory, prefix, num, extension, ...
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Return a string representation

Overrides: object.__repr__