Changes in src/sas/sascalc/dataloader/file_reader_base_class.py [4a8d55c:a58b5a0] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/file_reader_base_class.py
r4a8d55c ra58b5a0 31 31 FIELDS_2D = ('data', 'qx_data', 'qy_data', 'q_data', 'err_data', 32 32 'dqx_data', 'dqy_data', 'mask') 33 DEPRECATION_MESSAGE = ("\rThe extension of this file suggests the data set migh" 34 "t not be fully reduced. Support for the reader associat" 35 "ed with this file type has been removed. An attempt to " 36 "load the file was made, but, should it be successful, " 37 "SasView cannot guarantee the accuracy of the data.") 33 38 34 39 35 class FileReader(object): … … 44 40 # List of allowed extensions 45 41 ext = ['.txt'] 46 # Deprecated extensions47 deprecated_extensions = ['.asc', '.nxs']48 42 # Bypass extension check and try to load anyway 49 43 allow_all = False … … 93 87 if not self.f_open.closed: 94 88 self.f_open.close() 95 if any(filepath.lower().endswith(ext) for ext in96 self.deprecated_extensions):97 self.handle_error_message(DEPRECATION_MESSAGE)98 89 if len(self.output) > 0: 99 90 # Sort the data that's been loaded … … 155 146 else: 156 147 logger.warning(msg) 157 raise NoKnownLoaderException(msg)158 148 159 149 def send_to_output(self):
Note: See TracChangeset
for help on using the changeset viewer.