Skip to content

Commit

Permalink
spotless and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyajohnson committed Aug 19, 2022
1 parent 2492582 commit ba53441
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 124 deletions.
2 changes: 1 addition & 1 deletion cdm-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ tasks.register("testIndexCreation", Test) {
}

test {
// dependsOn 'testIndexCreation'
dependsOn 'testIndexCreation'

// In addition to preventing TestGribIndexCreation from running during cdm-test:test,
// this statement also excludes the results of TestGribIndexCreation from appearing in the cdm-test report:
Expand Down
104 changes: 0 additions & 104 deletions cdm-test/src/test/java/ucar/nc2/TestFailingTest.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ public static List<Object[]> getTestParameters() {
List<Object[]> result = new ArrayList<>();

result.addAll(TestCFPointDatasets.getPointDatasets());
// result.addAll(TestCFPointDatasets.getStationDatasets());
// result.addAll(TestCFPointDatasets.getProfileDatasets());
// result.addAll(TestCFPointDatasets.getTrajectoryDatasets());
// result.addAll(TestCFPointDatasets.getStationProfileDatasets());
// result.addAll(TestCFPointDatasets.getSectionDatasets());
result.addAll(TestCFPointDatasets.getStationDatasets());
result.addAll(TestCFPointDatasets.getProfileDatasets());
result.addAll(TestCFPointDatasets.getTrajectoryDatasets());
result.addAll(TestCFPointDatasets.getStationProfileDatasets());
result.addAll(TestCFPointDatasets.getSectionDatasets());

return result;
}
Expand Down Expand Up @@ -88,8 +88,7 @@ public void testWrite4Classic() throws IOException {
private void writeDataset(String location, FeatureType ftype, NetcdfFileWriter.Version version, int countExpected)
throws IOException {
File fileIn = new File(location);
// File fileOrg = tempFolder.newFile();
File fileOrg = File.createTempFile("testWrite", "input.nc");
File fileOrg = tempFolder.newFile();

long start = System.currentTimeMillis();

Expand All @@ -116,9 +115,7 @@ private void writeDataset(String location, FeatureType ftype, NetcdfFileWriter.V

try (FeatureDataset fdataset = FeatureDatasetFactoryManager.open(ftype, location, null, out)) {
FeatureDatasetPoint fdpoint = (FeatureDatasetPoint) fdataset;
// File fileNew = tempFolder.newFile();

File fileNew = File.createTempFile("testWrite", "output.nc");
File fileNew = tempFolder.newFile();
ucar.nc2.ft.point.writer2.CFPointWriterConfig configNew = ucar.nc2.ft.point.writer2.CFPointWriterConfig.builder()
.setFormat(NetcdfFormatWriter.convertToNetcdfFileFormat(version)).build();
int countNew =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ public static List<Object[]> getTestParameters() {
List<Object[]> result = new ArrayList<>();

result.addAll(TestCFPointDatasets.getPointDatasets());
// result.addAll(TestCFPointDatasets.getStationDatasets());
// result.addAll(TestCFPointDatasets.getProfileDatasets());
// result.addAll(TestCFPointDatasets.getTrajectoryDatasets());
// result.addAll(TestCFPointDatasets.getStationProfileDatasets());
// result.addAll(TestCFPointDatasets.getSectionDatasets());
result.addAll(TestCFPointDatasets.getStationDatasets());
result.addAll(TestCFPointDatasets.getProfileDatasets());
result.addAll(TestCFPointDatasets.getTrajectoryDatasets());
result.addAll(TestCFPointDatasets.getStationProfileDatasets());
result.addAll(TestCFPointDatasets.getSectionDatasets());

return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import ucar.nc2.iosp.hdf5.BTree2;
import ucar.nc2.iosp.hdf5.FractalHeap;
import ucar.nc2.iosp.hdf5.MemTracker;
import ucar.nc2.filter.Filter;
import ucar.unidata.io.RandomAccessFile;

/** The low-level HDF5 data objects. */
Expand Down Expand Up @@ -1773,7 +1772,7 @@ String getName() {
}

int getId() {
return (int)this.properties.get(Filters.Keys.ID);
return (int) this.properties.get(Filters.Keys.ID);
}

Map<String, Object> getProperties() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public class H5tiledLayoutBB implements LayoutBB {
* @throws InvalidRangeException if section invalid for this variable
* @throws IOException on io error
*/
public H5tiledLayoutBB(Variable v2, Section wantSection, RandomAccessFile raf, H5objects.Filter[] filterProps, ByteOrder byteOrder)
throws InvalidRangeException, IOException {
public H5tiledLayoutBB(Variable v2, Section wantSection, RandomAccessFile raf, H5objects.Filter[] filterProps,
ByteOrder byteOrder) throws InvalidRangeException, IOException {
wantSection = Section.fill(wantSection, v2.getShape());

H5headerNew.Vinfo vinfo = (H5headerNew.Vinfo) v2.getSPobject();
Expand Down

0 comments on commit ba53441

Please sign in to comment.