Changeset 3b865c1 in sasview for prview/perspectives


Ignore:
Timestamp:
Sep 9, 2009 7:14:15 PM (15 years ago)
Author:
Mathieu Doucet <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:
e83c75a
Parents:
9ce41c6
Message:

prview: catch previously uncaught exception when exploring d_max values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prview/perspectives/pr/explore_dialog.py

    r9ff861b r3b865c1  
    1717import math 
    1818import logging 
     19import sys 
    1920 
    2021# Avoid Matplotlib complaining about the lack of legend on the plot  
     
    352353            d = content.dmin + i * (content.dmax - content.dmin)/(content.npts-1.0) 
    353354            self.pr_state.d_max = d 
    354             out, cov = self.pr_state.invert(self.nfunc)     
    355              
    356             # Store results 
    357355            try: 
     356                out, cov = self.pr_state.invert(self.nfunc)    
     357             
     358                # Store results 
    358359                iq0 = self.pr_state.iq0(out) 
    359360                rg = self.pr_state.rg(out) 
     
    372373            except: 
    373374                # This inversion failed, skip this D_max value 
    374                 logging.error("ExploreDialog: inversion failed for D_max=%s" % str(d)) 
     375                logging.error("ExploreDialog: inversion failed for D_max=%s\n%s" % (str(d), sys.exc_value)) 
    375376             
    376377        self.results = results             
Note: See TracChangeset for help on using the changeset viewer.