Unverified Commit a3e21f1c authored by Christine Kim's avatar Christine Kim Committed by GitHub
Browse files

cubeit attribute fix (#5268)

* cubeit attribute fix

* Update changelog
parent 70ec72a4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ release.
- Fixed <i>findfeatures</i> use of projected mosaics with correct check for <b>TargetName</b> in the Mapping labels. [#4772](https://github.com/DOI-USGS/ISIS3/issues/4772)
- Fixed a bug in the <i>cnetwinnow</i> test that did not clean/remove it during test runs.
- Fixed <i>findfeatures</i> instantiation and use of projection classes to correctly return geometry data from projected images and mosaics. [#4772](https://github.com/DOI-USGS/ISIS3/issues/4772)
- Fixed `cubeit` attribute error to allow attribute specification on the output cube filename [#5234](https://github.com/DOI-USGS/ISIS3/issues/5234)

## [8.0.0] - 2023-04-19

+9 −4
Original line number Diff line number Diff line
@@ -629,11 +629,16 @@ namespace Isis {

    initLabelFromFile(cubeFileName, (access == "rw"));

    try {
      Isis::CubeAttributeInput att(cubeFileName);
      if(att.bands().size() != 0) {
        vector<QString> bands = att.bands();
        setVirtualBands(bands);
      }
    } catch(IException& e) {
      // Either the cube is an output cube that has already been opened or 
      // there is an exception parsing and adding an attribute
    }

    // Figure out the name of the data file
    try {