Changes in src/sas/sascalc/dataloader/file_reader_base_class.py [cb11a25:814ee32] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/file_reader_base_class.py
rcb11a25 r814ee32 27 27 28 28 class FileReader(object): 29 # List of Data1D and Data2D objects to be sent back to data_loader 30 output = [] 31 # Current plottable_(1D/2D) object being loaded in 32 current_dataset = None 33 # Current DataInfo object being loaded in 34 current_datainfo = None 29 35 # String to describe the type of data this reader can load 30 36 type_name = "ASCII" … … 37 43 # Able to import the unit converter 38 44 has_converter = True 45 # Open file handle 46 f_open = None 39 47 # Default value of zero 40 48 _ZERO = 1e-16 41 49 42 def __init__(self):43 # List of Data1D and Data2D objects to be sent back to data_loader44 self.output = []45 # Current plottable_(1D/2D) object being loaded in46 self.current_dataset = None47 # Current DataInfo object being loaded in48 self.current_datainfo = None49 # Open file handle50 self.f_open = None51 52 50 def read(self, filepath): 53 51 """ … … 56 54 :param filepath: The full or relative path to a file to be loaded 57 55 """ 56 self.filepath = filepath 58 57 if os.path.isfile(filepath): 59 58 basename, extension = os.path.splitext(os.path.basename(filepath))
Note: See TracChangeset
for help on using the changeset viewer.