Changeset eb46451 in sasmodels


Ignore:
Timestamp:
Jan 21, 2016 4:58:11 PM (9 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:
caeb06d
Parents:
7d256c8
Message:

better random model generation for RPA model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r82c299f reb46451  
    8686    elif p.endswith('_pd'): 
    8787        return [0, 1] 
    88     elif p in ['background', 'scale']: 
     88    elif p == 'background': 
     89        return [0, 10] 
     90    elif p == 'scale': 
    8991        return [0, 1e3] 
     92    elif p == 'case_num': 
     93        # RPA hack 
     94        return [0, 10] 
     95    elif v < 0: 
     96        # Kxy parameters in rpa model can be negative 
     97        return [2*v, -2*v] 
    9098    else: 
    9199        return [0, (2*v if v>0 else 1)] 
Note: See TracChangeset for help on using the changeset viewer.