Skip to content

add sample-level plotting and name filtering to aniso_magic#849

Merged
Swanson-Hysell merged 1 commit into
masterfrom
aniso_magic_fix
May 5, 2026
Merged

add sample-level plotting and name filtering to aniso_magic#849
Swanson-Hysell merged 1 commit into
masterfrom
aniso_magic_fix

Conversation

@Swanson-Hysell

Copy link
Copy Markdown
Member

Extends aniso_magic with samples / isample / group_samples parameters that mirror the existing site-level options, plus a sites parameter and group_sites flag that let callers pass an explicit list of sites/samples and choose between per-group iteration (one plot each) or pooled plotting (one combined plot). Adds validation that rejects conflicting combinations (e.g. isite with isample, or isite with group_sites).

Refactors the per-site loop into a shared per-group loop that dispatches on either 'site' or 'sample', tags server-mode filenames with SI:_ or SA:_ accordingly, and looks up the location field from the sites table when grouping by site and from the propagated specimens column when grouping by sample. Names not present in the data are skipped with a verbose message rather than raising.

Collapses aniso_magic_nb to an alias of aniso_magic so the notebook- facing name and the canonical implementation cannot drift apart.

This should be tested more before merging into main.

Extends aniso_magic with `samples` / `isample` / `group_samples` parameters
that mirror the existing site-level options, plus a `sites` parameter and
`group_sites` flag that let callers pass an explicit list of sites/samples
and choose between per-group iteration (one plot each) or pooled plotting
(one combined plot). Adds validation that rejects conflicting combinations
(e.g. isite with isample, or isite with group_sites).

Refactors the per-site loop into a shared per-group loop that dispatches
on either 'site' or 'sample', tags server-mode filenames with SI:_ or
SA:_ accordingly, and looks up the location field from the sites table
when grouping by site and from the propagated specimens column when
grouping by sample. Names not present in the data are skipped with a
verbose message rather than raising.

Collapses aniso_magic_nb to an alias of aniso_magic so the notebook-
facing name and the canonical implementation cannot drift apart.
@Swanson-Hysell Swanson-Hysell merged commit 37e2967 into master May 5, 2026
2 checks passed
@Swanson-Hysell Swanson-Hysell deleted the aniso_magic_fix branch May 5, 2026 23:02
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