mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-30 17:36:40 +00:00
respect windSourcesToExclude parameter again in getWind(...); down to about 8 errors; not terminating...
This commit is contained in:
1 parent
ac09cfab68
commit
f8fe9675da
1 file changed
+5
-3
+5
-3
@@ -539,9 +539,11 @@ public abstract class TrackedRaceImpl implements TrackedRace, CourseListener {
|
||||
ConfidenceFactory.INSTANCE.createAverager(timeWeigherThatPretendsToAlsoWeighPositions);
|
||||
List<WindWithConfidence<Pair<Position, TimePoint>>> windFixesWithConfidences = new ArrayList<WindWithConfidence<Pair<Position, TimePoint>>>();
|
||||
for (WindSource windSource : getWindSources()) {
|
||||
WindTrack track = getWindTrack(windSource);
|
||||
WindWithConfidence<Pair<Position, TimePoint>> windWithConfidence = track.getEstimatedWindWithConfidence(p, at);
|
||||
windFixesWithConfidences.add(windWithConfidence);
|
||||
if (!Util.contains(windSourcesToExclude, windSource)) {
|
||||
WindTrack track = getWindTrack(windSource);
|
||||
WindWithConfidence<Pair<Position, TimePoint>> windWithConfidence = track.getEstimatedWindWithConfidence(p, at);
|
||||
windFixesWithConfidences.add(windWithConfidence);
|
||||
}
|
||||
}
|
||||
HasConfidence<ScalableWind, Wind, Pair<Position, TimePoint>> average = averager.getAverage(windFixesWithConfidences, new Pair<Position, TimePoint>(p, at));
|
||||
WindWithConfidence<Pair<Position, TimePoint>> result = new WindWithConfidenceImpl<Pair<Position,TimePoint>>(
|
||||
|
||||
Reference in new issue
Block a user