Skip to content

Commit

Permalink
#9 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
markhalonen committed Aug 29, 2018
1 parent 0cf6b0d commit a78870e
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions Viewer/src/net/relinc/viewer/GUI/HomeController.java
Original file line number Diff line number Diff line change
Expand Up @@ -729,17 +729,16 @@ public void selectCustomRangeButtonFired(){
public void reduceDataSizeButtonFired() {
Map<String, Number> reduceParams = DataReducerDialog.showDataReducerDialog();
getCheckedSamples().stream().forEach(sample -> {
sample.DataFiles.stream().forEach(df -> {
df.dataSubsets.stream().forEach(subset -> {
if(reduceParams.containsKey("pointsToKeep"))
{
subset.reduceDataNonReversible(reduceParams.get("pointsToKeep").intValue());
} else {
subset.reduceDataNonReversibleByFrequency(reduceParams.get("frequency").doubleValue());
}

});
});
sample.DataFiles.stream().forEach(df -> {
df.dataSubsets.stream().forEach(subset -> {
if (reduceParams.containsKey("pointsToKeep")) {
subset.reduceDataNonReversible(reduceParams.get("pointsToKeep").intValue());
} else {
subset.reduceDataNonReversibleByFrequency(reduceParams.get("frequency").doubleValue());
}

});
});
});
renderSampleResults();
renderCharts();
Expand Down

0 comments on commit a78870e

Please sign in to comment.