Skip to content

Commit

Permalink
Updated botched merge
Browse files Browse the repository at this point in the history
  • Loading branch information
krlberry committed Oct 29, 2020
1 parent 859d158 commit 1bc29f5
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 214 deletions.
47 changes: 47 additions & 0 deletions isis/tests/Fixtures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,53 @@ namespace Isis {
}
}

void ObservationPair::SetUp() {
FileName labelPathL = FileName("data/observationPair/observationImageL.pvl");
FileName labelPathR = FileName("data/observationPair/observationImageR.pvl");

isdPathL = new FileName("data/observationPair/observationImageL.isd");
isdPathR = new FileName("data/observationPair/observationImageR.isd");

cubeL = new Cube();
cubeR = new Cube();

cubeLPath = tempDir.path() + "/observationPairL.cub";
cubeRPath = tempDir.path() + "/observationPairR.cub";

cubeL->fromIsd(cubeLPath, labelPathL, *isdPathL, "rw");
cubeR->fromIsd(cubeRPath, labelPathR, *isdPathR, "rw");

cubeList = new FileList();
cubeList->append(cubeL->fileName());
cubeList->append(cubeR->fileName());

cubeListFile = tempDir.path() + "/cubes.lis";
cubeList->write(cubeListFile);

cnetPath = "data/observationPair/observationPair.net";
network = new ControlNet();
network->ReadControl(cnetPath);
}


void ObservationPair::TearDown() {
delete cubeList;
delete network;

if (cubeL) {
delete cubeL;
}

if (cubeR) {
delete cubeR;
}

delete isdPathL;
delete isdPathR;

}


void MroCube::setInstrument(QString ikid, QString instrumentId, QString spacecraftName) {
PvlGroup &kernels = testCube->label()->findObject("IsisCube").findGroup("Kernels");
kernels.findKeyword("NaifFrameCode").setValue(ikid);
Expand Down
22 changes: 22 additions & 0 deletions isis/tests/Fixtures.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,28 @@ namespace Isis {
FileList *cubeList;
QString cubeListFile;
QString controlNetPath;

void SetUp() override;
void TearDown() override;
};

class ObservationPair : public TempTestingFiles {
protected:

Cube *cubeL;
Cube *cubeR;

QString cubeLPath;
QString cubeRPath;

FileName *isdPathL;
FileName *isdPathR;

FileList *cubeList;
QString cubeListFile;

ControlNet *network;
QString cnetPath;

void SetUp() override;
void TearDown() override;
Expand Down
Loading

0 comments on commit 1bc29f5

Please sign in to comment.