Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/g/s/gsdview-HEAD/gsdview/tests/test_stretcher.py   gsdview(Download)
    def test_set_imput_range1(self):
        stretch = LinearStretcher()
        stretch.set_range(10, 265)
 
        self.assertEqual(stretch.offset, 10)
    def test_set_imput_range2(self):
        stretch = LinearStretcher()
        stretch.set_range(10, 521)
 
        scale = 255. / 511  # (omax - omin) / (imax - imin)