Release 1.0.2 with localized sky overlay and cloud-resistant display fit
All checks were successful
Release AstroFrame / packages (push) Successful in 1m1s

This commit is contained in:
Elijah 2026-10-03 20:36:20 -07:00
parent 1e8e8c88fe
commit 6b56c0b122
16 changed files with 227 additions and 24 deletions

View file

@ -38,6 +38,18 @@ static class ImageRegression
check(clear.All(f=>f.Automatic==Verdict.Keep),"persistent nebulosity and gradual sky/flux trends remain KEEP in image pipeline");
check(cloud.All(f=>f.Automatic==Verdict.Reject),"prolonged moving cloud does not become the local baseline");
check(cloud.All(f=>f.CloudMask.Any(v=>v>0)&&f.Evidence.Any(e=>e.Metric=="Cloud structure")),"cloud masks and spatial explanations survive the full image pipeline");
bool Localized(Frame f)
{
int n=frames.IndexOf(f);double center=.22+(n%9)*.045,aspect=(double)f.Height/f.Width;var a=f.Alignment;
var cells=Enumerable.Range(0,SkyModel.Count).Select(i=>
{
double x=(i%SkyModel.Columns+.5)/SkyModel.Columns,y=(i/SkyModel.Columns+.5)/SkyModel.Rows;
return(i,Y:(a[1]*x+a[0]*y*aspect+a[3])/aspect);
}).Where(c=>c.Y>.05&&c.Y<.95).ToArray();
var core=cells.Where(c=>Math.Abs(c.Y-center)<.05).ToArray();var clearSky=cells.Where(c=>Math.Abs(c.Y-center)>.24).ToArray();
return f.ExcessSkyMask.Length==SkyModel.Count&&core.Length>0&&core.Count(c=>f.ExcessSkyMask[c.i]>=128)>=core.Length*.85&&clearSky.Length>0&&clearSky.Count(c=>f.ExcessSkyMask[c.i]>0)<=clearSky.Length*.1;
}
check(cloud.All(Localized),"image pipeline highlights physical cloud cores while leaving distant clear sky unshaded");
check(frames[18].Automatic==Verdict.Review,"modest transient sky structure without stellar loss routes to REVIEW, preserving conservative rejection");
var reference=frames.First(f=>f.Id==cloud[0].ReferenceId);var image=Fits.Read(cloud[0].Path);
var vanished=reference.Stars[0] with{Flux=1};reference.Stars=[vanished];var forced=Matching.ForcedFlux(reference,cloud[0],image);