Skip to content

Test normalize currents results in different fields#320

Open
jurasic-pf wants to merge 1 commit intojurasic/normalization-was-ignoredfrom
jurasic/test-normalize-currents
Open

Test normalize currents results in different fields#320
jurasic-pf wants to merge 1 commit intojurasic/normalization-was-ignoredfrom
jurasic/test-normalize-currents

Conversation

@jurasic-pf
Copy link
Copy Markdown
Collaborator

No description provided.

@jurasic-pf jurasic-pf requested a review from jons-pf May 6, 2025 19:37
Copy link
Copy Markdown
Collaborator Author

jurasic-pf commented May 6, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jurasic-pf jurasic-pf marked this pull request as ready for review May 6, 2025 19:37
@jurasic-pf jurasic-pf linked an issue May 8, 2025 that may be closed by this pull request

def test_normalize_by_currents(makegrid_params: vmecpp.MakegridParameters):
makegrid_params.normalize_by_currents = True
response1 = vmecpp.MagneticFieldResponseTable.from_coils_file(
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.

maybe call response1 and response2 something like response_normalized and response_unnormalized?



def test_normalize_by_currents(makegrid_params: vmecpp.MakegridParameters):
makegrid_params.normalize_by_currents = True
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.

I think normalize_by_currents is misleading here - I chose a bad name - since we actually aim to normalize by the number of windings -> normalize_by_num_windings?

@jurasic-pf jurasic-pf changed the base branch from main to graphite-base/320 February 10, 2026 23:42
@jurasic-pf jurasic-pf force-pushed the jurasic/test-normalize-currents branch from 11008ab to f5f2b11 Compare February 10, 2026 23:42
@jurasic-pf jurasic-pf changed the base branch from graphite-base/320 to jurasic/normalization-was-ignored February 10, 2026 23:42
@jurasic-pf jurasic-pf force-pushed the jurasic/test-normalize-currents branch from f5f2b11 to b5e398b Compare February 11, 2026 00:18
@jurasic-pf jurasic-pf force-pushed the jurasic/test-normalize-currents branch from b5e398b to 60fdee3 Compare February 11, 2026 12:27
@jurasic-pf jurasic-pf force-pushed the jurasic/normalization-was-ignored branch from 2fc6321 to 8fbf8de Compare February 11, 2026 12:27
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.

Normalize currents has no effect on magnetic field

2 participants