Changeset 1f34e00 in sasview


Ignore:
Timestamp:
Sep 25, 2018 5:37:29 AM (4 weeks ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_image_viewer, ESS_GUI_project_save
Children:
acd0591d
Parents:
4e85147
Message:

Don't show the plot if no data. Removed debug assert.

Location:
src/sas/qtgui/Plotting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Plotter.py

    r863ebca r1f34e00  
    7575        if isinstance(data, Data1D): 
    7676            self.data = data 
    77         assert(self._data) 
     77        if not self._data or data is None: 
     78            return 
    7879 
    7980        is_fit = (self.data.id=="fit") 
  • src/sas/qtgui/Plotting/Plotter2D.py

    r676a430 r1f34e00  
    9595            self.data = data 
    9696 
    97         assert self._data 
     97        if not self._data or data is None: 
     98            return 
    9899 
    99100        # Toggle the scale 
Note: See TracChangeset for help on using the changeset viewer.