Changeset 052a5f8d in sasview for src/sas/sascalc/fit/pagestate.py


Ignore:
Timestamp:
Mar 31, 2019 7:12:40 AM (5 years ago)
Author:
GitHub <noreply@…>
Parents:
6d7b252b (diff), ffe5345 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
gonzalezma <gonzalezm@…> (03/31/19 07:12:40)
git-committer:
GitHub <noreply@…> (03/31/19 07:12:40)
Message:

Merge ffe53450587fd1bfa1129defd4854e473ed6bb4b into 6d7b252bf3722c053065645b1afe65424979127f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/fit/pagestate.py

    re090ba90 rffe5345  
    491491        """ 
    492492        for item in list: 
    493             rep += "parameter name: %s \n" % str(item[1]) 
     493            if str(item[1][-6:]) == '.width': 
     494                par = str(item[1][:-6]) 
     495                pd_type = self.model.dispersion[par]['type'] 
     496                npts = self.model.dispersion[par]['npts'] 
     497                nsigmas = self.model.dispersion[par]['nsigmas'] 
     498                dist_str = str(item[1])  
     499                dist_str += '(' + str(pd_type)  
     500                dist_str += '; points = ' + str(npts)  
     501                dist_str += '; sigmas = ' + str(nsigmas) + ')'  
     502                rep += "parameter name: %s \n" % dist_str 
     503            else: 
     504                rep += "parameter name: %s \n" % str(item[1]) 
    494505            rep += "value: %s\n" % str(item[2]) 
    495506            rep += "selected: %s\n" % str(item[0]) 
Note: See TracChangeset for help on using the changeset viewer.