fix(render): ignore excluded frames in cached series and exposure steps
An excluded test shot at another exposure created holy-grail steps, and cached deep-analysis series still fed excluded frames into the fits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
2 files changed
+34
-7
No files matched your search
@@ -69,6 +69,19 @@ public sealed class RenderProcessingTests
|
||||
Assert.Approximately(-1.0, output[^1] - output[0], 0.1, "the step is kept, only spread out");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task ExcludedFramesDoNotCreateExposureSteps()
|
||||
{
|
||||
// Frame 10 is a test shot one stop darker; excluding it must leave no holy-grail step behind.
|
||||
var source = Source(30, configure: o => o with { ExposureSteps = [new SyntheticExposureStep(10, 1.0), new SyntheticExposureStep(11, -1.0)], StartEv = 0, EndEv = 0 });
|
||||
var project = With(new ExposureSettings { HolyGrail = On(true), HighlightKnee = null });
|
||||
var all = await RenderPreparation.PrepareAsync(Input(source, project), cancellationToken: _context.Cancellation);
|
||||
var excluded = await RenderPreparation.PrepareAsync(Input(source, project with { ExcludedFrames = [10] }), cancellationToken: _context.Cancellation);
|
||||
Assert.Count(2, all.Report.Transitions);
|
||||
Assert.Empty(excluded.Report.Transitions);
|
||||
Assert.True(double.IsNaN(excluded.MeasuredLogLuminance[10]));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task WhiteBalanceSmoothingRemovesColourJitter()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user