Changeset 9dc1500 in sasview


Ignore:
Timestamp:
Sep 10, 2018 2:25:38 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:
8d5e11c
Parents:
c2525bf
Message:

Take value directly instead of slice to avoid value errors.

File:
1 edited

Legend:

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

    rc2525bf r9dc1500  
    156156            elif isinstance(value, h5py.Dataset): 
    157157                # If this is a dataset, store the data appropriately 
    158                 data_set = data[key][:] 
     158                data_set = value.value 
    159159                unit = self._get_unit(value) 
    160160 
Note: See TracChangeset for help on using the changeset viewer.