Changeset 1edf610 in sasmodels for sasmodels/core.py


Ignore:
Timestamp:
Mar 21, 2016 12:54:55 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:
a4e2ae5, afda63c
Parents:
839283a
Message:

debug checkin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/core.py

    r0880966 r1edf610  
    225225        weights = [1.0]*len(values) 
    226226    else: 
    227         wv_pairs = [get_weights(p, pars) for p in kernel.info['parameters']] 
    228         weights, values = [v for v in zip(*wv_pairs)] 
     227        vw_pairs = [get_weights(p, pars) for p in kernel.info['parameters']] 
     228        values, weights = zip(*vw_pairs) 
    229229 
    230230    #TODO: This is what we thought to do if max([len(w) for w in weights]) > 1: 
    231     if max([w for w in weights]) > 1: 
     231    print("from") 
     232    import pprint; pprint.pprint(weights) 
     233    print("to") 
     234    if max([len(w) for w in weights]) > 1: 
    232235        details = generate.poly_details(kernel.info, weights) 
    233236    else: 
Note: See TracChangeset for help on using the changeset viewer.