Repository navigation
Move Base.getproperty(grid_ggd) and Base.:∈(subset) to IMASdd - #90
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
getpropertykeeps the direct-getfieldfallback (these types areIDSvectorRawElement, 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 unrelatedinterpolations.jlone-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