Changeset 689222c in sasview for src


Ignore:
Timestamp:
Jun 16, 2017 5:38:16 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
b67bfa7
Parents:
85487ebd
Message:

Allow more flexibility for malformed files SASVIEW-597

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py

    r06b0138 r689222c  
    288288    else: 
    289289        # TODO: fix case where applying new data from file on top of existing model data 
    290         y = (fn - gn[index][0]) / en 
    291         residuals.y = y 
     290        try: 
     291            y = (fn - gn[index][0]) / en 
     292            residuals.y = y 
     293        except ValueError: 
     294            # value errors may show up every once in a while for malformed columns, 
     295            # just reuse what's there already 
     296            pass 
    292297 
    293298    residuals.x = current_data.x[index][0] 
Note: See TracChangeset for help on using the changeset viewer.