Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyajohnson committed Nov 28, 2023
1 parent 9a57f50 commit 0095a36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ protected void readValues() {
// the axis was created by this classes factory.
if (this.orgDataType != null && !this.orgDataType.isNumeric()) {
this.coords = cdates.stream().mapToDouble(cdate -> (double) cdate.getDifferenceInMsecs(cdates.get(0))).toArray();
// make sure parent methods do not try to read from the orgVar again
this.wasRead = true;
} else {
super.readValues();
}
// make sure parent methods do not try to read from the orgVar again
this.wasRead = true;
}

////////////////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import static java.lang.Float.NaN;

import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
Expand Down Expand Up @@ -85,7 +84,7 @@ public void testWrite() throws Exception {
}

Array readEnhanced;

// read the packed form, enhance using scale/offset, compare to original
try (NetcdfDataset ncd = NetcdfDatasets.openDataset(filename)) {
VariableDS vs = (VariableDS) ncd.findVariable("packed");
vs.removeEnhancement(Enhance.ConvertMissing);
Expand Down

0 comments on commit 0095a36

Please sign in to comment.