Skip to content

Use diagnostic constraint COCOS consistent with EFIT - #97

Merged
AreWeDreaming merged 2 commits into
mainfrom
fix_equilibrium_constraint_cocos
Sep 10, 2026
Merged

AreWeDreaming merged 2 commits into
mainfrom
fix_equilibrium_constraint_cocos

Conversation

@torrinba

Copy link
Copy Markdown
Collaborator

This addresses #96 and should be tested against gafusion/omas#435

EFIT outputs the inferred flux variables (psi, psi_axis, etc) with a different convention than the diagnostic constraints (e.g. flux_loops) so the input COCOS for these need to be different. The constraints are now consistent with the input COCOS of the magnetics IDS.

Joey should be assigned to review this as well, but needs to be added to this organization first (which I can't do).

This addresses #96 and should be tested against gafusion/omas#435

EFIT outputs the inferred flux variables (psi, psi_axis, etc) with a different convention than the diagnostic constraints (e.g. flux_loops) so the input COCOS for these need to be different. The constraints are now consistent with the input COCOS of the magnetics IDS.
@torrinba
torrinba requested a review from AreWeDreaming August 13, 2026 20:35
@torrinba torrinba self-assigned this Aug 13, 2026
@torrinba torrinba added the bug Something isn't working label Aug 13, 2026
@torrinba torrinba mentioned this pull request Aug 13, 2026
These still need to have the same COCOS as the equilibrium psi
since they aren't direct diagnostic measurements.
@jmcclena

Copy link
Copy Markdown
Collaborator

@torrinba This looks good.

@AreWeDreaming AreWeDreaming left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an important fix that has been verified downstream via IDA.

@AreWeDreaming
AreWeDreaming merged commit d25fcce into main Sep 10, 2026
@AreWeDreaming
AreWeDreaming deleted the fix_equilibrium_constraint_cocos branch September 10, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants