Changeset dbfd471 in sasmodels


Ignore:
Timestamp:
Apr 7, 2017 10:14:00 AM (8 months ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, boltzmann, costrafo411, doc_update, generic_integration_loop, ticket-1043, ticket-786
Children:
b2f1d2f
Parents:
46056006
Message:

coerce python model output to array

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernelpy.py

    rb397165 rdbfd471  
    235235            # exclude all q for that NaN.  Even better would be to have an 
    236236            # INVALID expression like the C models, but that is too expensive. 
    237             Iq = form() 
     237            Iq = np.asarray(form(), 'd') 
    238238            if np.isnan(Iq).any(): continue 
    239239 
Note: See TracChangeset for help on using the changeset viewer.