Changeset c952e59 in sasmodels


Ignore:
Timestamp:
Sep 9, 2018 3:40:23 AM (11 days ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
Branches:
beta_approx
Children:
19e8a2b
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.