Changeset dbfd471 in sasmodels


Ignore:
Timestamp:
Apr 7, 2017 10:14:00 AM (18 months ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, ESS_GUI, F1F2models_grethe, beta_approx, costrafo411, cuda-test, ticket-1084, ticket-1102-pinhole, ticket-1112, ticket-1142-plugin-reload, ticket-1148-Sq-scale-background, ticket-1157, ticket-1173-cache-loadinfo, ticket-608-user-defined-weights, ticket_1156
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.