Changeset dbfd471 in sasmodels for sasmodels/kernelpy.py


Ignore:
Timestamp:
Apr 7, 2017 8:14:00 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:
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.