Changeset 608e31e in sasmodels


Ignore:
Timestamp:
Jan 21, 2016 6:38:09 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

reduce lint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r9cfcac8 r608e31e  
    750750    def __init__(self, opts): 
    751751        from bumps.cli import config_matplotlib 
    752         import bumps_model 
     752        from . import bumps_model 
    753753        config_matplotlib() 
    754754        self.opts = opts 
     
    758758            active = [base + ext 
    759759                      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']] 
    761761            active.extend(info['partype']['fixed-1d']) 
    762762            for k in active: 
     
    773773    def numpoints(self): 
    774774        """ 
    775         Return the number of points 
     775        Return the number of points. 
    776776        """ 
    777777        return len(self.pars) + 1  # so dof is 1 
     
    779779    def parameters(self): 
    780780        """ 
    781         Return a dictionary of parameters 
     781        Return a dictionary of parameters. 
    782782        """ 
    783783        return self.pars 
    784784 
    785785    def nllf(self): 
     786        """ 
     787        Return cost. 
     788        """ 
    786789        return 0.  # No nllf 
    787790 
     
    790793        Plot the data and residuals. 
    791794        """ 
    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()) 
    793796        pars.update(self.pd_types) 
    794797        self.opts['pars'] = pars 
Note: See TracChangeset for help on using the changeset viewer.