You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Run.numSites sums Alignment objects instead of site counts #259
getnumSites(): number {returnthis.alignments.reduce((sum,n)=>sum+n,0);}
n is an Alignment, not a number, so sum + n concatenates object strings ("0[object Object]") instead of adding Alignment.numSites. Run.computeds.test.js only checks the empty case (0), so it passes. tsc reports TS2365; #258 keeps the behaviour under @ts-expect-error.
Expected
numSites is the total site count across the run's alignments (sum + n.numSites). Check whether any page reads Run.numSites before choosing the fix; git grep numSites shows no non-test reader of the run's value today.
Acceptance criteria
Run.numSites returns the sum of each alignment's numSites
Activity
Delete unused Run.numSites and Alignment.numSites (#284)
Convert the Page, preload and alignment parsers to TypeScript (Antone…