Changeset b4b8589 in sasview for src/sas/qtgui/DataExplorer.py


Ignore:
Timestamp:
Dec 8, 2016 7:53:56 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:
fecfe28
Parents:
cad617b
Message:

Code review from WP. Also, added 1D plots with error bars as default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/DataExplorer.py

    rcad617b rb4b8589  
    411411                raise AttributeError, msg 
    412412 
     413 
    413414        if plots and \ 
    414            hasattr(new_plot, 'data') and \ 
    415            len(new_plot.data.x) > 0: 
    416             self.plotAdd(new_plot) 
     415            hasattr(new_plot, 'data') and \ 
     416            isinstance(new_plot.data, Data1D): 
     417                self.plotAdd(new_plot) 
    417418 
    418419    def plotAdd(self, new_plot): 
Note: See TracChangeset for help on using the changeset viewer.