Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noproj STILL doesn't clean up all files! #5577

Open
kledmundson opened this issue Aug 5, 2024 · 0 comments
Open

Noproj STILL doesn't clean up all files! #5577

kledmundson opened this issue Aug 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kledmundson
Copy link
Contributor

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

@kledmundson kledmundson added the bug Something isn't working label Aug 5, 2024
kledmundson added a commit to UA-LPL/ISIS3 that referenced this issue Aug 7, 2024
…sulted in a temporary "*.lbl" file that remained after running the noproj application. Addresses DOI-USGS#5577.
kledmundson added a commit to UA-LPL/ISIS3 that referenced this issue Aug 7, 2024
kledmundson added a commit to UA-LPL/ISIS3 that referenced this issue Aug 7, 2024
acpaquette pushed a commit that referenced this issue Aug 13, 2024
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant