def test_lut_check(self): histats = edr.parse_histat(isis.histat(self.hicube).stdout) self.assertIsNone(edr.lut_check(self.hicube, histats))
def test_parse_histat(self): h = edr.parse_histat(isis.histat(self.hicube).stdout) self.assertIsInstance(h, dict)
def test_calc_snr(self): histats = edr.parse_histat(isis.histat(self.hicube).stdout) histats["BINNING"] = isis.getkey_k(self.hicube, "Instrument", "Summing") s = edr.calc_snr(self.hicube, pvl.load(gains), histats) self.assertAlmostEqual(s, 291.80442197)
def test_tdi_bin_check(self): histats = edr.parse_histat(isis.histat(self.hicube).stdout) self.assertIsNone(edr.tdi_bin_check(self.hicube, histats)) histats["PRODUCT_ID"] = "bogus id" self.assertIsNone(edr.tdi_bin_check(self.hicube, histats))