Skip to content

Move Base.getproperty(grid_ggd) and Base.:∈(subset) to IMASdd - #90

Merged
tomneiser merged 3 commits into
masterfrom
move-base-methods-to-imasdd
Jul 27, 2026
Merged

tomneiser merged 3 commits into
masterfrom
move-base-methods-to-imasdd

Conversation

@tomneiser

@tomneiser tomneiser commented Jul 26, 2026 •

Copy link
Copy Markdown
Member

These two methods dispatch purely on Unions of IMASdd types — type piracy from IMASdd's perspective, and a hard method-overwriting error during precompilation when both packages end up in one environment (first seen in the FUSE v1.1.6 PackageCompiler sysimage build, where SOLPS2imas pulls IMASggd alongside the FUSE/IMASdd stack).

They now live in IMASdd ≥ 8.6.0 (ProjectTorreyPines/IMASdd.jl#106) with byte-identical semantics: the grid_ggd path-linking getproperty keeps the direct-getfield fallback (these types are IDSvectorRawElement, whose canonical property access is raw field access), and the point-in-subset ∈ is ported verbatim with its helpers. Behavior is unchanged for IMASggd users since method dispatch is global — combined-load verification confirms path deref works and dispatch resolves to IMASdd.

This PR removes the two definitions (−104 lines, internal helpers retained) and sets compat IMASdd = "8.6"; version → 3.4.0. The unrelated interpolations.jl one-liner is pre-existing formatter drift required by the format-check CI (which installs the latest JuliaFormatter).

Merge order: IMASdd#106 must merge and register first (this package's compat requires 8.6).

Note: the Test CI failure (Permission denied for user eldond on host iris.gat.com) is pre-existing on master — the DVC sample store points at the retired iris cluster — and is unrelated to this change.

🤖 Generated with Claude Code

These two methods dispatch purely on Unions of IMASdd types — type piracy
here, and a hard method-overwriting error during precompilation when both
packages end up in one environment (first seen in the FUSE v1.1.6
PackageCompiler sysimage build, where SOLPS2imas pulls IMASggd alongside
FUSE's IMASdd stack). They now live in IMASdd >= 8.6.0 (with the standard IDS
property machinery as fallback rather than the raw getfield bypass); the
grid_ggd path-linking and point-in-subset behavior are unchanged for users
since dispatch is global.

Requires IMASdd >= 8.6 (compat bumped); version 3.4.0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pre-existing drift vs the latest JuliaFormatter that the format-check CI
installs; unrelated to this PR's changes but required for it to pass.
IMAS.jl defines recipes for the same IMASdd types (interferometer,
interferometer__channel, interferometer__channel___line_of_sight).
RecipesBase.apply_recipe dispatches on the type alone, so the duplicates are
identical-signature methods — a hard method-overwriting error during
precompilation when both packages load in one process (empirically confirmed
as a trigger of the FUSE sysimage build failure via cache-load tracing).
The GGD and n_e_line(_average) recipes are unique to IMASggd and remain.
@tomneiser
tomneiser merged commit 76e80ba into master Jul 27, 2026
1 of 4 checks passed
@tomneiser
tomneiser deleted the move-base-methods-to-imasdd branch July 27, 2026 18:43
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