Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/dataloader/file_reader_base_class.py

    r4a8d55c ra58b5a0  
    3131FIELDS_2D = ('data', 'qx_data', 'qy_data', 'q_data', 'err_data', 
    3232                 '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 
    3834 
    3935class FileReader(object): 
     
    4440    # List of allowed extensions 
    4541    ext = ['.txt'] 
    46     # Deprecated extensions 
    47     deprecated_extensions = ['.asc', '.nxs'] 
    4842    # Bypass extension check and try to load anyway 
    4943    allow_all = False 
     
    9387                    if not self.f_open.closed: 
    9488                        self.f_open.close() 
    95                     if any(filepath.lower().endswith(ext) for ext in 
    96                            self.deprecated_extensions): 
    97                         self.handle_error_message(DEPRECATION_MESSAGE) 
    9889                    if len(self.output) > 0: 
    9990                        # Sort the data that's been loaded 
     
    155146        else: 
    156147            logger.warning(msg) 
    157             raise NoKnownLoaderException(msg) 
    158148 
    159149    def send_to_output(self): 
Note: See TracChangeset for help on using the changeset viewer.