Skip to content

Commit bc621dc

Browse files
sebgodclaude
andcommitted
Fix stale altitude charts after site change
ComputeTonightsBestAsync did not invalidate the cached astrom grid, so altitude profiles were computed using the old site's precomputed astrometric data. Now clears CachedAstromGrid before recomputing profiles, matching what RecomputeForDate already does. Also add TODOs for VkImageRenderer abstraction extraction. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 38dfd33 commit bc621dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/TianWen.UI.Abstractions/PlannerActions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ void Report(string msg)
140140
// Compute fine altitude profiles and cross-index aliases for the top targets
141141
Report("Computing altitude profiles...");
142142

143+
// Invalidate cached grid (site or date may have changed)
144+
state.CachedAstromGrid = null;
143145
var (gridAstroms, gridTimes) = EnsureAstromGrid(state, transform);
144146

145147
state.AltitudeProfiles.Clear();

0 commit comments

Comments
 (0)