Changeset bf6b8d1 in sasview for src


Ignore:
Timestamp:
Mar 23, 2015 7:41:10 AM (10 years ago)
Author:
Doucet, Mathieu <doucetm@…>
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:
c1bffa5
Parents:
1805b87
Message:

Fix P(r) estimator. Should also behave better on errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/pr/num_term.py

    r5f8fc78 rbf6b8d1  
    107107        """ 
    108108        # Generate data 
    109         # ls_osc = self.get0_out() 
     109        self.get0_out() 
    110110        med = self.median_osc() 
    111111 
     
    144144            return nt, self.alpha_list[nt - 10], self.mess_list[nt - 10] 
    145145        except: 
    146             return self.nterm_min, self.alpha_list[10], self.mess_list[10] 
     146            logging.error("NTermEstimator.num_terms: %s" % sys.exc_value) 
     147            return self.nterm_min, self.invertor.alpha, '' 
    147148 
    148149 
Note: See TracChangeset for help on using the changeset viewer.