Changeset 09141ff in sasmodels


Ignore:
Timestamp:
Oct 11, 2017 11:46:08 AM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
c11d09f, 55d88b4, 3a45c2c
Parents:
74b0495
Message:

detect whether load data returns None or []

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/data.py

    r74b0495 r09141ff  
    5656        index = int(indexstr) 
    5757    datasets = loader.load(filename) 
    58     if datasets is None: 
     58    if not datasets:  # None or [] 
    5959        raise IOError("Data %r could not be loaded" % filename) 
    6060    if not isinstance(datasets, list): 
Note: See TracChangeset for help on using the changeset viewer.