Changeset 0880966 in sasmodels for sasmodels/kerneldll.py


Ignore:
Timestamp:
Mar 21, 2016 12:34:51 PM (8 years ago)
Author:
wojciech
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:
839283a
Parents:
9f4409a
Message:

Mono and poly reading fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kerneldll.py

    r39cc3be r0880966  
    271271        #weights = np.asarray(weights, dtype=real) 
    272272        #values = np.asarray(values, dtype=real) 
     273        #TODO: How can I access max_pd and is this the way to do it? 
     274        #max_pd = model_info['max_pd'] 
     275        max_pd = 1 
    273276        args = [ 
    274277            self.q_input.nq, # nq 
     278            #TODO: pd_start will need to be changed 
    275279            0, # pd_start 
    276             1, # pd_stop 
     280            details[3*max_pd:4*max_pd], # pd_stop pd_stride[MAX_PD] 
    277281            details.ctypes.data, # problem 
    278282            weights.ctypes.data,  # weights 
Note: See TracChangeset for help on using the changeset viewer.