Changeset a0f13e6 in sasview


Ignore:
Timestamp:
Mar 29, 2019 1:40:37 PM (6 years ago)
Author:
awashington
Children:
d32a594
Parents:
033b1f2
Message:

Unit Test Sesans view transform

This unit test will prevent a regression where the SESANS isn't
explicitly set to linear transform.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py

    r0989bad ra0f13e6  
    8181        """ Ensure that Sesans data is plotted in linear cooredinates""" 
    8282        data = Data1D(x=[1.0, 2.0, 3.0], 
    83                       y=[10.0, 11.0, 12.0], 
     83                      y=[-10.0, -11.0, -12.0], 
    8484                      dx=[0.1, 0.2, 0.3], 
    8585                      dy=[0.1, 0.2, 0.3]) 
     
    9797        self.assertEqual(self.plotter.ax.get_xscale(), 'linear') 
    9898        self.assertEqual(self.plotter.ax.get_yscale(), 'linear') 
     99        self.assertEqual( 
     100            len(self.plotter.data.view.y), 
     101            len(data.view.y)) 
     102        self.assertEqual(self.plotter.data.ytransform, "y") 
    99103        self.assertTrue(FigureCanvas.draw_idle.called) 
    100104 
Note: See TracChangeset for help on using the changeset viewer.