Changeset 60eab2a in sasmodels for sasmodels/direct_model.py


Ignore:
Timestamp:
Mar 24, 2016 6:12:07 AM (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:
380e8c9
Parents:
e69b36f
Message:

support autogenerated Iqxy in C models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/direct_model.py

    r48fbd50 r60eab2a  
    7878            q_mono = sesans.make_all_q(data) 
    7979        elif self.data_type == 'Iqxy': 
    80             partype = model.info['par_type'] 
    81             if not partype['orientation'] and not partype['magnetic']: 
    82                 raise ValueError("not 2D without orientation or magnetic parameters") 
     80            #if not model.info['parameters'].has_2d: 
     81            #    raise ValueError("not 2D without orientation or magnetic parameters") 
    8382            q = np.sqrt(data.qx_data**2 + data.qy_data**2) 
    8483            qmin = getattr(data, 'qmin', 1e-16) 
Note: See TracChangeset for help on using the changeset viewer.