Changeset c79ee796 in sasview


Ignore:
Timestamp:
Mar 6, 2009 2:55:59 PM (16 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
19ef1e5
Parents:
7b73518
Message:

change the range of dispers param

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/AbstractFitEngine.py

    r26cb768 rc79ee796  
    3838            return the range of parameter 
    3939        """ 
    40         lo,hi = self._model.details[self.name][1:] 
    41         if lo is None: lo = -numpy.inf 
    42         if hi is None: hi = numpy.inf 
     40        if not  self.name in self._model.getDispParamList(): 
     41            lo,hi = self._model.details[self.name][1:] 
     42            if lo is None: lo = -numpy.inf 
     43            if hi is None: hi = numpy.inf 
     44        else: 
     45            lo= -numpy.inf 
     46            hi= numpy.inf 
    4347        return lo,hi 
     48         
    4449     
    4550    def _setrange(self,r): 
     
    152157            @return residuals 
    153158        """ 
     159         
    154160        x,y,dy = [numpy.asarray(v) for v in (self.x,self.y,self.dy)] 
    155161        if self.qmin==None and self.qmax==None:  
     
    244250        if self.smearer is not None: 
    245251            fx = self.smearer(fx) 
    246              
    247252        # Sanity check 
    248253        if numpy.size(dy) < numpy.size(x): 
     
    341346         Sans Assembly class a class wrapper to be call in optimizer.leastsq method 
    342347    """ 
     348     
    343349    def __init__(self,paramlist,Model=None , Data=None): 
    344350        """ 
Note: See TracChangeset for help on using the changeset viewer.