Changeset 3e8ea5d in sasmodels


Ignore:
Timestamp:
Oct 18, 2016 10:31:22 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
6d96b66
Parents:
c3ebc71
Message:

constrain pearls to be bigger than string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r158cee4 r3e8ea5d  
    334334        rg_max = np.sqrt(90*np.log(10) + 3*np.log(pars['scale']))/q_max 
    335335        pars['rg'] = min(pars['rg'], rg_max) 
     336 
     337    elif name == 'pearl_necklace': 
     338        if pars['radius'] < pars['thick_string']: 
     339            pars['radius'], pars['thick_string'] = pars['thick_string'], pars['radius'] 
     340        pars['num_pearls'] = math.ceil(pars['num_pearls']) 
     341        pass 
    336342 
    337343    elif name == 'rpa': 
Note: See TracChangeset for help on using the changeset viewer.