You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In testing the noproj app for upcoming modifications, Sarah Sutton (@artmathgirl) discovered that there was still a persistent temporary match file (extension lbl; e.g. matchXXXX.lbl) remaining after running noproj. This results from not closing the match cube after returning from the call to cam2cam (and sadly, I didn't catch it) e.g. ...
Code snippet from noproj.cpp (~line 375)...
// And run cam2cam to apply the transformation
QVector args = {"to=" + ui.GetCubeName("TO"), "INTERP=" + ui.GetString("INTERP")};
UserInterface cam2camUI(FileName("$ISISROOT/bin/xml/cam2cam.xml").expanded(), args);
Cube matchCube;
matchCube.open(matchCubeFile.expanded(), "rw");
cam2cam(icube, &matchCube, cam2camUI);
matchCube.close(); THE MISSING LINE
* Added line to close match cube in noproj.cpp. Not closing the cube resulted in a temporary "*.lbl" file that remained after running the noproj application. Addresses #5577.
* CHANGELOG entry for noproj bug fix. Addresses #5577.
* Added history entry in noproj.xml. Addresses #5577.
ISIS version(s) affected:
dev
Description
In testing the noproj app for upcoming modifications, Sarah Sutton (@artmathgirl) discovered that there was still a persistent temporary match file (extension lbl; e.g. matchXXXX.lbl) remaining after running noproj. This results from not closing the match cube after returning from the call to cam2cam (and sadly, I didn't catch it) e.g. ...
Code snippet from noproj.cpp (~line 375)...
// And run cam2cam to apply the transformation
QVector args = {"to=" + ui.GetCubeName("TO"), "INTERP=" + ui.GetString("INTERP")};
UserInterface cam2camUI(FileName("$ISISROOT/bin/xml/cam2cam.xml").expanded(), args);
Cube matchCube;
matchCube.open(matchCubeFile.expanded(), "rw");
cam2cam(icube, &matchCube, cam2camUI);
matchCube.close(); THE MISSING LINE
How to reproduce
Possible Solution
Close the matchCube.
Additional context
Related issue...
#4813
The text was updated successfully, but these errors were encountered: