refactor(core): name the advisor namespace Advice; record advisor decisions
The Advisor class shared its namespace's name, forcing an alias in every Titano.Core caller. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
10 files changed
+84
-49
No files matched your search
@@ -66,7 +66,11 @@ public sealed class DeepAnalyzerTests(TestContext context)
|
||||
{
|
||||
var sequence = SyntheticSequence.Create(new SyntheticSequenceOptions
|
||||
{
|
||||
Width = 96, Height = 64, FrameCount = 240, FlickerEv = 0.15, FlickerPeriodFrames = period,
|
||||
Width = 96,
|
||||
Height = 64,
|
||||
FrameCount = 240,
|
||||
FlickerEv = 0.15,
|
||||
FlickerPeriodFrames = period,
|
||||
});
|
||||
var report = await DeepAnalyzer.AnalyzeAsync(new SyntheticFrameSource(sequence), DeepScenes.Options);
|
||||
Assert.Approximately(period, report.Flicker.PeriodFrames!.Value, 0.05 * period);
|
||||
@@ -79,7 +83,13 @@ public sealed class DeepAnalyzerTests(TestContext context)
|
||||
{
|
||||
var sequence = SyntheticSequence.Create(new SyntheticSequenceOptions
|
||||
{
|
||||
Width = 96, Height = 64, FrameCount = 60, FlickerEv = 0.02, BlackFrames = [10], WhiteFrames = [20], DuplicateFrames = [30],
|
||||
Width = 96,
|
||||
Height = 64,
|
||||
FrameCount = 60,
|
||||
FlickerEv = 0.02,
|
||||
BlackFrames = [10],
|
||||
WhiteFrames = [20],
|
||||
DuplicateFrames = [30],
|
||||
});
|
||||
var report = await DeepAnalyzer.AnalyzeAsync(new SyntheticFrameSource(sequence) { Undecodable = [40] }, DeepScenes.Options);
|
||||
Assert.SequenceEqual([10], report.Issues.Black);
|
||||
@@ -102,7 +112,14 @@ public sealed class DeepAnalyzerTests(TestContext context)
|
||||
var first = new SyntheticFrameSource(SyntheticSequence.Create(new SyntheticSequenceOptions { Width = 96, Height = 64, FrameCount = 50, FlickerEv = 0.05 }));
|
||||
var second = new SyntheticFrameSource(SyntheticSequence.Create(new SyntheticSequenceOptions
|
||||
{
|
||||
Width = 96, Height = 64, FrameCount = 50, FlickerEv = 0.05, Seed = 5, HorizonFraction = 0.75, SkyLevel = 0.6, LandLevel = 0.01,
|
||||
Width = 96,
|
||||
Height = 64,
|
||||
FrameCount = 50,
|
||||
FlickerEv = 0.05,
|
||||
Seed = 5,
|
||||
HorizonFraction = 0.75,
|
||||
SkyLevel = 0.6,
|
||||
LandLevel = 0.01,
|
||||
}));
|
||||
var report = await DeepAnalyzer.AnalyzeAsync(new SplicedSource(first, second, 30), DeepScenes.Options);
|
||||
Assert.SequenceEqual([30], report.Issues.SceneChanges);
|
||||
|
||||
Reference in new issue
Block a user