Changeset cf820f5 in sasview


Ignore:
Timestamp:
Jul 6, 2018 2:10:27 PM (6 years ago)
Author:
krzywon
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
Children:
f5483ef
Parents:
eb6abab
Message:

Give proper label to NXcanSAS data files in file browser window. refs #976

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/dataloader/readers/cansas_reader_HDF5.py

    r8f882fe rcf820f5  
    3939    cansas_version = 2.0 
    4040    # Data type name 
    41     type_name = "CanSAS 2.0" 
     41    type_name = "NXcanSAS" 
    4242    # Wildcards 
    43     type = ["CanSAS 2.0 HDF5 Files (*.h5)|*.h5"] 
     43    type = ["NXcanSAS HDF5 Files (*.h5)|*.h5|"] 
    4444    # List of allowed extensions 
    4545    ext = ['.h5', '.H5'] 
     
    7171                except Exception as e: 
    7272                    if extension not in self.ext: 
    73                         msg = "CanSAS2.0 HDF5 Reader could not load file {}".format(basename + extension) 
     73                        msg = "NXcanSAS HDF5 Reader could not load file {}".format(basename + extension) 
    7474                        raise DefaultReaderException(msg) 
    7575                    raise FileContentsException(e.message) 
Note: See TracChangeset for help on using the changeset viewer.