Changeset 2c74c11 in sasmodels for sasmodels/convert.py


Ignore:
Timestamp:
Jul 24, 2016 8:56:45 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
a4280bd
Parents:
f1765a2
Message:

implicit Iqxy; fix divide by 0 for q=0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/convert.py

    rf1765a2 r2c74c11  
    282282        suppress_magnetism = False 
    283283        for key in pars.keys(): 
    284             suppress_magnetism = suppress_magnetism or (pars[key] != 0) 
    285284            if key.startswith("M0:"): 
     285                suppress_magnetism = suppress_magnetism or (pars[key] != 0) 
    286286                pars[key] = 0 
    287287        if suppress_magnetism: 
Note: See TracChangeset for help on using the changeset viewer.