Changeset ffe5345 in sasview


Ignore:
Timestamp:
Mar 31, 2019 5:21:05 AM (6 years ago)
Author:
gonzalezm
Branches:
ticket-1009
Children:
052a5f8d
Parents:
8fbca4f
Message:

Added number of points and sigmas in PD distribution to report

File:
1 edited

Legend:

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

    r8fbca4f rffe5345  
    493493            if str(item[1][-6:]) == '.width': 
    494494                par = str(item[1][:-6]) 
    495                 pd_type = str(self.model.dispersion[par]['type']) 
    496                 rep += "parameter name: %s (%s) \n" % (str(item[1]), pd_type) 
     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 
    497503            else: 
    498504                rep += "parameter name: %s \n" % str(item[1]) 
Note: See TracChangeset for help on using the changeset viewer.