Changeset 9220e89c in sasview for src/sas/sascalc/file_converter


Ignore:
Timestamp:
Nov 20, 2018 10:55:05 AM (6 years ago)
Author:
Jeff Krzywon <jkrzywon@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249
Children:
c7c8143
Parents:
c222c27
Message:

Code cleanup and py3 compatibility fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/file_converter/nxcansas_writer.py

    r2ca5d57b r9220e89c  
    8787                    entry[names[2]].attrs['units'] = units 
    8888 
    89         valid_data = all([issubclass(d.__class__, (Data1D, Data2D)) for d in 
    90                           dataset]) 
     89        valid_data = all([isinstance(d, (Data1D, Data2D)) for d in dataset]) 
    9190        if not valid_data: 
    9291            raise ValueError("All entries of dataset must be Data1D or Data2D" 
Note: See TracChangeset for help on using the changeset viewer.