Commit 8665b1af authored by Michele Maris's avatar Michele Maris
Browse files

u

parent 2bd6bcc5
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -79,10 +79,20 @@ class EnsembleFitting_Base :
        """returns the whole last fitting result"""
        return self._fitting_result
    #
    @property
    def fitting_bounds(self) :
        """returns fitting bounds"""
        return self._fitting_args['bounds']
    #
    @fitting_bounds.setter
    def fitting_bounds(self,this) :
        """returns fitting bounds"""
        if not type(this) in [type([]),type(())] :
            raise Exception('fitting bounds must be a 2 elements tuple')
        if not len(this)==2 :
            raise Exception('fitting bounds must be a 2 elements tuple')
        self._fitting_args['bounds']=(this[0],this[1])
    #
    @property
    def residuals(self) :
        if not self.fit_success :