Beispiel #1
0
 def test_lut_check(self):
     histats = edr.parse_histat(isis.histat(self.hicube).stdout)
     self.assertIsNone(edr.lut_check(self.hicube, histats))
Beispiel #2
0
 def test_parse_histat(self):
     h = edr.parse_histat(isis.histat(self.hicube).stdout)
     self.assertIsInstance(h, dict)
Beispiel #3
0
 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)
Beispiel #4
0
 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))