Unverified Commit e821fe8e authored by Kelvin Rodriguez's avatar Kelvin Rodriguez Committed by GitHub
Browse files

Leisa2ISIS tests passing (#3708)

* fixed building errors

* fixed leisa tests
parent b6ad70b4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1297,6 +1297,7 @@ namespace Isis {
   */
  Isis::Cube *ProcessImport::SetOutputCube(const QString &fname,
      Isis::CubeAttributeOutput &att) {
    SetAttributes(att);
    return Isis::Process::SetOutputCube(fname, att, p_ns, p_nl, p_nb);
  }

+3 −4
Original line number Diff line number Diff line
@@ -65,12 +65,11 @@ namespace Isis {


  void ThreeImageNetwork::TearDown() {
    delete cube1;
    delete cube2;
    delete cube3;

    delete cubeList;
    delete network;
  
    delete cube1;
    delete cube2;
    delete cube3;
  }
}
+4 −4
Original line number Diff line number Diff line
@@ -69,13 +69,13 @@ TEST(leisa2isisTest, leisa2isisTestDefault) {
  ASSERT_EQ(bandbin["OriginalBand"].size(), 256);

  ASSERT_DOUBLE_EQ(bandbin["Center"][0].toDouble(), 2.4892);
  ASSERT_DOUBLE_EQ(bandbin["Center"][64].toDouble(), 0);
  ASSERT_DOUBLE_EQ(bandbin["Center"][128].toDouble(), 0);
  ASSERT_DOUBLE_EQ(bandbin["Center"][64].toDouble(), 1.9784);
  ASSERT_DOUBLE_EQ(bandbin["Center"][128].toDouble(), 1.572);
  ASSERT_DOUBLE_EQ(bandbin["Center"][255].toDouble(), 2.0898);

  ASSERT_DOUBLE_EQ(bandbin["Width"][0].toDouble(), 0.011228);
  ASSERT_DOUBLE_EQ(bandbin["Width"][64].toDouble(), 0);
  ASSERT_DOUBLE_EQ(bandbin["Width"][128].toDouble(), 0);
  ASSERT_DOUBLE_EQ(bandbin["Width"][64].toDouble(), 0.008924);
  ASSERT_DOUBLE_EQ(bandbin["Width"][128].toDouble(), 0.007091);
  ASSERT_DOUBLE_EQ(bandbin["Width"][255].toDouble(), 0.004915);

  ASSERT_DOUBLE_EQ(bandbin["OriginalBand"][0].toDouble(), 1);