Changeset c952e59 in sasmodels


Ignore:
Timestamp:
Sep 9, 2018 3:40:23 AM (6 years ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
c11d09f
Parents:
2cc8aa2
Message:

make SasviewModel?'s parsing of par units, bounds sane again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sasview_model.py

    r2773c66 rc952e59  
    381381                continue 
    382382            self.params[p.name] = p.default 
    383             if p.limits and type(p.limits) is list and len(p.limits) > 1: 
    384                 self.details[p.id] = [p.units if not p.choices else p.choices, p.limits[0], p.limits[1]] 
    385             else: 
    386                 self.details[p.id] = [p.units if not p.choices else p.choices, None, None] 
     383            self.details[p.id] = [p.units, p.limits[0], p.limits[1]] 
    387384            if p.polydisperse: 
    388385                self.details[p.id+".width"] = [ 
Note: See TracChangeset for help on using the changeset viewer.