Skip to content

Commit

Permalink
Addressed PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
amystamile-usgs committed Jan 14, 2025
1 parent d5e4908 commit 9f13a86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 3 additions & 1 deletion isis/src/base/objs/Cube/Cube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ namespace Isis {
void Cube::fromIsd(const FileName &fileName, Pvl &label, nlohmann::json &isd, QString access) {
fromLabel(fileName, label, access);

if (isd.contains("line_scan_rate")) {
PvlGroup &instGrp = label.findGroup("Instrument", Pvl::Traverse);
if (isd.contains("line_scan_rate") && (QString)instGrp["InstrumentId"] == "HRSC") {
attachLineScanTableFromIsd(isd);
}

attachSpiceFromIsd(isd);

close();
Expand Down
10 changes: 1 addition & 9 deletions isis/src/mex/objs/HrscCamera/HrscCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,7 @@ namespace Isis {
* @param cube
*/
void HrscCamera::ReadLineRates(Cube &cube) {
Table timesTable("LineScanTimes");

// check if LineScanTimes was added from isd
if (cube.hasTable("LineScanTimes")) {
timesTable = cube.readTable("LineScanTimes");
}
else {
timesTable = Table("LineScanTimes", cube.fileName());
}
Table timesTable = cube.readTable("LineScanTimes");

if(timesTable.Records() <= 0) {
QString msg = "Table [LineScanTimes] in [";
Expand Down

0 comments on commit 9f13a86

Please sign in to comment.