Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ko/test coils #1025

Closed
wants to merge 85 commits into from
Closed

ko/test coils #1025

wants to merge 85 commits into from

Conversation

kianorr
Copy link
Collaborator

@kianorr kianorr commented May 20, 2024

resolves #1021

kianorr and others added 30 commits March 7, 2024 11:58
- also added to compute function for each interval
- didn't add for all compute functions yet
- added equal signs to ranges
- used jnp.where instead of directly slicing
- now works for batch arrays
- interpolate over whole array
- use ifor_loop
- delete double stack
- use jnp.where for istop
- add is_discontinuous
- use [[]] as default indices
- still have to do it for the others
@ddudt
Copy link
Collaborator

ddudt commented Jun 13, 2024

See if these new tests pass with the changes from PR #1030 on branch dd/hotfix. Let's make sure we have at least one test where a coilset is saved, loaded, and then re-optimized (that was the underlying problem in Issue #1029).

kianorr and others added 2 commits June 16, 2024 14:37
I guess I didn't try if it worked without loading but it does
@kianorr
Copy link
Collaborator Author

kianorr commented Jun 17, 2024

See if these new tests pass with the changes from PR #1030 on branch dd/hotfix. Let's make sure we have at least one test where a coilset is saved, loaded, and then re-optimized (that was the underlying problem in Issue #1029).

So should I have one of the dummy coil sets to load/save and then the other would just return the coil set? Or should both DummyCoilSet and DummyMixedCoilSet save/load the coil set?

@f0uriest f0uriest changed the base branch from ko/discon_curve to master June 26, 2024 19:02
@dpanici
Copy link
Collaborator

dpanici commented Jun 26, 2024

Close this probably and open a new PR (and one for method fix PR)

@dpanici
Copy link
Collaborator

dpanici commented Jul 1, 2024

Also, try to test PlasmaCoilsetMinDistance as well as QuadraticFlux for each coil type

@kianorr
Copy link
Collaborator Author

kianorr commented Jul 4, 2024

PR #1099 replaced this one

@kianorr kianorr deleted the ko/test_coils branch July 4, 2024 20:31
kianorr added a commit that referenced this pull request Jul 9, 2024
Test every coil type. Resolves #1021 

Also contains bug fixes:
- fixes bug when computing magnetic field with `FourierRZcoil` that has
`NFP>1`, previously the grid used had the same `NFP` but that meant that
only part of the coil was being included in the biot savart integral.
Now grids for magnetic field computation from `FourierRZCoil` have
`NFP=1` and have `NFP` multiplying the usual default grid resolution to
avoid this issue

Replaces PR #1025
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.

Add test to Check that we can optimize with every coil type
3 participants