Changeset 608e31e in sasmodels
- Timestamp:
- Jan 21, 2016 6:38:09 PM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 3a45c2c
- Parents:
- 9cfcac8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
r9cfcac8 r608e31e 750 750 def __init__(self, opts): 751 751 from bumps.cli import config_matplotlib 752 import bumps_model752 from . import bumps_model 753 753 config_matplotlib() 754 754 self.opts = opts … … 758 758 active = [base + ext 759 759 for base in info['partype']['pd-1d'] 760 for ext in ['', '_pd','_pd_n','_pd_nsigma']]760 for ext in ['', '_pd', '_pd_n', '_pd_nsigma']] 761 761 active.extend(info['partype']['fixed-1d']) 762 762 for k in active: … … 773 773 def numpoints(self): 774 774 """ 775 Return the number of points 775 Return the number of points. 776 776 """ 777 777 return len(self.pars) + 1 # so dof is 1 … … 779 779 def parameters(self): 780 780 """ 781 Return a dictionary of parameters 781 Return a dictionary of parameters. 782 782 """ 783 783 return self.pars 784 784 785 785 def nllf(self): 786 """ 787 Return cost. 788 """ 786 789 return 0. # No nllf 787 790 … … 790 793 Plot the data and residuals. 791 794 """ 792 pars = dict((k, v.value) for k, v in self.pars.items())795 pars = dict((k, v.value) for k, v in self.pars.items()) 793 796 pars.update(self.pd_types) 794 797 self.opts['pars'] = pars
Note: See TracChangeset
for help on using the changeset viewer.