def testClose( self): ''' ''' print "testGraphics.testClose" PySpectra.cls() PySpectra.delete() PySpectra.setTitle( "testing close()") sinus = PySpectra.Scan( name = 'sinus', xMin = 0., xMax = 6.0, nPts = 101, lineColor = 'red', doty = True) sinus.y = np.sin( sinus.y) PySpectra.display() PySpectra.processEventsLoop( 1) PySpectra.close() PySpectra.cls() PySpectra.delete() PySpectra.setTitle( "testing close(), again") sinus = PySpectra.Scan( name = 'sinus', xMin = 0., xMax = 6.0, nPts = 101, lineColor = 'red', doty = True) sinus.y = np.sin( sinus.y) PySpectra.display() PySpectra.processEventsLoop( 1) print "testGraphics.testClose, DONE"
def close(): if spectraInstalled and useSpectra: argout = True else: argout = PySpectra.close() return
def tearDownClass(testExamples): PySpectra.close()
def tearDownClass( testSpock): PySpectra.close()
def tearDownClass(testUtils): PySpectra.close()
def tearDownClass( testGraphics): PySpectra.close()
def tearDownClass(testZmqIfc): if wasLaunched: PySpectra.killPyspMonitor() PySpectra.close()
def tearDownClass(testTangoIfc): PySpectra.close()
def tearDownClass(testIFC): PySpectra.close()
def tearDownClass(testGQE): PySpectra.close()
def tearDownClass( testCalc): PySpectra.close()