PyDVT.EdfFileData (version 1.1.0, 08/11/2002)
index
/mntdirect/_bliss/users/gobbo/PyDVT/PyDVT/EdfFileData.py

EdfFileData.py
Data derived class to access Edf files

 
Modules
            
EdfFile
EventHandler
Numeric
copy
types

 
Classes
            
PyDVT.Data.Data
EdfFileData

 
class EdfFileData(PyDVT.Data.Data)
      Specializes Data class in order to access Edf files.    
Interface: Data class interface.
 
  
AppendPage(self, info={}, array=None) from PyDVT.Data.Data
CopyPages(self, source_obj, index_list=0, position=None, synchronized=1, invalidate=1) from PyDVT.Data.Data
Delete(self, index=None) from PyDVT.Data.Data
Destroy(self, source=None) from PyDVT.Data.Data
GetCoordValue(self, coord) from PyDVT.Data.Data
GetInfo(self) from PyDVT.Data.Data
GetItemPageInfo(self, key, index=0) from PyDVT.Data.Data
GetNumberPages(self) from PyDVT.Data.Data
GetPageArray(self, index=0) from PyDVT.Data.Data
GetPageArrayRegion(self, pos=None, size=None, index=0, return_dimention=None) from PyDVT.Data.Data
GetPageDimention(self, index=0) from PyDVT.Data.Data
GetPageInfo(self, index=0) from PyDVT.Data.Data
GetPageListIndex(self, index) from PyDVT.Data.Data
GetPageSize(self, index=0) from PyDVT.Data.Data
GetSource(self) from PyDVT.Data.Data
GetSourceInfo(self)
Returns information about the EdfFile object created by
SetSource, to give application possibility to know about
it before loading.
Returns a dictionary with the keys "Size" (number of possible
keys to this source) and "KeyList" (list of all available keys
in this source). Each element in "KeyList" is an integer
meaning the index of the array in the file.
GetSourceLoadedKeys(self, source_name) from PyDVT.Data.Data
GetSourceLoadedNames(self) from PyDVT.Data.Data
GetSourceName(self) from PyDVT.Data.Data
InsertPage(self, info={}, array=None, index=None) from PyDVT.Data.Data
Invalidate(self, page_list='ALL') from PyDVT.Data.Data
IsCoordValid(self, coord) from PyDVT.Data.Data
LoadSource(self, key_list='ALL', append=0, invalidate=1, pos=None, size=None)
Creates a given number of pages, getting data from the actual
source (set by SetSource)
Parameters:
key_list: list of all keys to be read from source. It is a list of
         integers, meaning the indexes to be read from the file.
         It can be also one integer, if only one array is to be read.
append: If non-zero appends to the end of page list.
        Otherwise, initializes the page list                
invalidate: if non-zero performas an invalidade call after
            loading
pos and size: (x), (x,y) or (x,y,z) tuples defining a roi
              If not defined, takes full array
              Stored in page's info
Refresh(self) from PyDVT.Data.Data
RefreshPage(source_obj, self, page) from PyDVT.Data.Data
SetSource(self, source_name=None)
Sets a new source for data retrieving, an edf file.
If the file exists, self.Source will be the EdfFile
object associated to this file.
Parameters:
source_name: name of the edf file
_Data__ThreadProc = __ThreadProc(self) from PyDVT.Data.Data
__init__(self, refresh_interval=None, info={})
See Data.__init__

 
Author
             Alexandre Gobbo (gobbo@esrf.fr)