Skip to content

--derive supports prefix-scoped variables#50

Merged
JamesMcClung merged 3 commits into
mainfrom
derive-from-other-prefix
Jul 23, 2026
Merged

--derive supports prefix-scoped variables#50
JamesMcClung merged 3 commits into
mainfrom
derive-from-other-prefix

Conversation

@JamesMcClung

Copy link
Copy Markdown
Owner

For example, do psc-plot pfd --derive electron_power="ey_ec*pfd_moments::jy_e"; the cross-prefix variable support is new.

JamesMcClung and others added 3 commits July 23, 2026 15:58
Derive becomes a WorldAdaptor so it can reach and auto-load sibling
prefixes (like --with), and the grammar's variable rule gains the ::
scope operator. Local and scoped variable resolution now share
_resolve_field_variable, which uses the Field-returning
derive_field_variable API — fixing the previously-broken (and untested)
local registry-resolution path.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@JamesMcClung JamesMcClung added the enhancement New feature or request label Jul 23, 2026
@JamesMcClung
JamesMcClung merged commit 4e1f26c into main Jul 23, 2026
2 checks passed
@JamesMcClung
JamesMcClung deleted the derive-from-other-prefix branch July 23, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant