Skip to content

Switch AscertainedForParsimonyUninformativeFilteredAlignment to spec FilteredAlignment#19

Open
alexeid wants to merge 1 commit intomasterfrom
fix/spec-filtered-alignment
Open

Switch AscertainedForParsimonyUninformativeFilteredAlignment to spec FilteredAlignment#19
alexeid wants to merge 1 commit intomasterfrom
fix/spec-filtered-alignment

Conversation

@alexeid
Copy link
Copy Markdown
Member

@alexeid alexeid commented May 7, 2026

Summary

beast.base.evolution.alignment.FilteredAlignment is @Deprecated in beast3 with a Javadoc pointer to beast.base.spec.evolution.alignment.FilteredAlignment. This was the only remaining Java migration item for morph-models — surfaced by the beast3-migration analyzer.

The spec FilteredAlignment still extends the (non-deprecated) Alignment, so all the inherited fields the existing override relies on — isAscertainedInput, excludefromInput, excludetoInput, setupAscertainment() — remain available unchanged. Only the import and extends clause needed updating; one line of real change.

Test plan

  • mvn test — 8/8 pass (LewisMKTest)
  • mvn -q -DskipTests compile and test-compile — clean
  • Maintainer to verify the example XMLs still run (the migration's behaviour for ascertainment correction relies on the inherited setup, which spec FilteredAlignment preserves)

…FilteredAlignment

beast.base.evolution.alignment.FilteredAlignment is @deprecated in
beast3 and replaced by beast.base.spec.evolution.alignment.FilteredAlignment.
The spec class still extends Alignment (the legacy StateNode, not
itself deprecated), so all the inherited fields the override relies on
— isAscertainedInput, excludefromInput, excludetoInput,
setupAscertainment() — remain available unchanged. Only the import
and extends clause needed updating.

mvn test: 8/8 pass.

Found via the beast3-migration analyzer: the only remaining Java
migration item for morph-models.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant