Changeset c36c09f in sasview
- Timestamp:
- Feb 14, 2018 1:23:29 PM (7 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
- Children:
- 3ee0451
- Parents:
- 61bfd36
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/file_reader_base_class.py
ra58b5a0 rc36c09f 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 SasView cannot guarantee th" 37 "e accuracy of the data.") 33 38 34 39 … … 40 45 # List of allowed extensions 41 46 ext = ['.txt'] 47 # Deprecated extensions 48 deprecated_extensions = ['.asc', '.nxs'] 42 49 # Bypass extension check and try to load anyway 43 50 allow_all = False … … 88 95 self.f_open.close() 89 96 if len(self.output) > 0: 97 if any(filepath.lower().endswith(ext) for ext in 98 self.deprecated_extensions): 99 self.handle_error_message(DEPRECATION_MESSAGE) 90 100 # Sort the data that's been loaded 91 101 self.sort_one_d_data()
Note: See TracChangeset
for help on using the changeset viewer.