Changeset 1231


Ignore:
Timestamp:
09/01/06 11:13:11 (18 years ago)
Author:
mar637
Message:

another small fix to prevent the user fitting when all parameters are fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/Release2.1.0b/python/asapfitter.py

    r1230 r1231  
    143143                self.fitter.estimate()
    144144        try:
     145            fxdpar = list(self.fitter.getfixedparameters())
     146            if len(fxdpar) and fxdpar.count(0) == 0:
     147                 raise RuntimeError,"No point fitting, if all parameters are fixed."
    145148            converged = self.fitter.fit()
    146149            if not converged:
Note: See TracChangeset for help on using the changeset viewer.