Changeset 9220e89c in sasview for src/sas/sascalc/file_converter
- Timestamp:
- Nov 20, 2018 10:55:05 AM (6 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/file_converter/nxcansas_writer.py
r2ca5d57b r9220e89c 87 87 entry[names[2]].attrs['units'] = units 88 88 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]) 91 90 if not valid_data: 92 91 raise ValueError("All entries of dataset must be Data1D or Data2D"
Note: See TracChangeset
for help on using the changeset viewer.