Commit a4e5d788 authored by Makayla Shepherd's avatar Makayla Shepherd
Browse files

Commented out changes that cause a segfault.

parent 1387e61c
Loading
Loading
Loading
Loading
+25 −25
Original line number Diff line number Diff line
@@ -303,31 +303,31 @@ namespace Isis {
        Cube *originalCube = new Cube(image->fileName(), "r");
        Cube *ecub = originalCube->copy(imagesBundledFile, CubeAttributeOutput("+External"));

        Process p;
        p.SetInputCube(ecub);
        //check for existing polygon, if exists delete it
        if (ecub->label()->hasObject("Polygon")) {
          ecub->label()->deleteObject("Polygon");
        }

        // check for CameraStatistics Table, if exists, delete
        for (int iobj = 0; iobj < ecub->label()->objects(); iobj++) {
          PvlObject obj = ecub->label()->object(iobj);
         if (obj.name() != "Table") continue;
         if (obj["Name"][0] != QString("CameraStatistics")) continue;
         ecub->label()->deleteObject(iobj);
         break;
        }
        //  Get Kernel group and add or replace LastModifiedInstrumentPointing keyword.
        Table cmatrix = m_bundleAdjust->cMatrix(i);
        QString jigComment = "Jigged = " + Isis::iTime::CurrentLocalTime();
        cmatrix.Label().addComment(jigComment);
        Table spvector = m_bundleAdjust->spVector(i);
        spvector.Label().addComment(jigComment);
        ecub->write(cmatrix);
        ecub->write(spvector);
        p.WriteHistory(*ecub);
        i++;
        // Process p;
        // p.SetInputCube(ecub);
        // //check for existing polygon, if exists delete it
        // if (ecub->label()->hasObject("Polygon")) {
        //   ecub->label()->deleteObject("Polygon");
        // }
        //
        // // check for CameraStatistics Table, if exists, delete
        // for (int iobj = 0; iobj < ecub->label()->objects(); iobj++) {
        //   PvlObject obj = ecub->label()->object(iobj);
        //  if (obj.name() != "Table") continue;
        //  if (obj["Name"][0] != QString("CameraStatistics")) continue;
        //  ecub->label()->deleteObject(iobj);
        //  break;
        // }
        // //  Get Kernel group and add or replace LastModifiedInstrumentPointing keyword.
        // Table cmatrix = m_bundleAdjust->cMatrix(i);
        // QString jigComment = "Jigged = " + Isis::iTime::CurrentLocalTime();
        // cmatrix.Label().addComment(jigComment);
        // Table spvector = m_bundleAdjust->spVector(i);
        // spvector.Label().addComment(jigComment);
        // ecub->write(cmatrix);
        // ecub->write(spvector);
        // p.WriteHistory(*ecub);
        // i++;
      }
    }