Changeset 1f34e00 in sasview for src


Ignore:
Timestamp:
Sep 25, 2018 7:37:29 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
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.