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

SpecFileData.py
Data derived class to access spec files

 
Modules
            
EventHandler
Numeric
copy
specfile
string
types

 
Classes
            
PyDVT.Data.Data
SpecFileData

 
class SpecFileData(PyDVT.Data.Data)
      Specializes Data class to access Spec 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, key=None)
Returns information about the Specfile 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 string in
the format "x.y" where x is the number of scan and y is
the order. "x.y" works as the key to retrieve the information
of this scan.
There's also the key "NumMca" in the returned dictionary,
which value is a list of numbers of mcas, for each value of
"KeyList".
If key given returns information of a perticular key instead.
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, row='ALL', col='ALL')
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
         strings in the following formats:
         "x.y": defines a scan data, x= number, y=order
         "x.y.z": defines a mca, mca number z of the scan "x.y"
         "x.y.z.w": defines a mca, row z, mca w of the scan "x.y"
         It can be also one string, 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
 
row: If set to an integer, loads a single row (not considered for mca) (0-based indexed)
col: If set to an integer, loads a single column (not considered for mca) (0-based indexed)
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 specfile.
If the file exists, self.Source will be the Specfile
object associated to this file.
Parameters:
source_name: name of the specfile
_Data__ThreadProc = __ThreadProc(self) from PyDVT.Data.Data
_SpecFileData__GetFileInfo = __GetFileInfo(self)
_SpecFileData__GetKeyType = __GetKeyType(self, key)
_SpecFileData__GetMcaInfo = __GetMcaInfo(self, mcano, scandata, info={})
_SpecFileData__GetMcaPars = __GetMcaPars(self, key)
_SpecFileData__GetScanInfo = __GetScanInfo(self, scankey, scandata=None)
_SpecFileData__GetScanList = __GetScanList(self)
_SpecFileData__GetSourceInfo = __GetSourceInfo(self)
__init__(self, refresh_interval=None, info={})
See Data.__init__

 
Author
             Alexandre Gobbo (gobbo@esrf.fr)