Skip to content

Fix simsopt compat for change_resolution#8

Open
jungdaesuh wants to merge 4 commits intomainfrom
fix-simsopt-compat
Open

Fix simsopt compat for change_resolution#8
jungdaesuh wants to merge 4 commits intomainfrom
fix-simsopt-compat

Conversation

@jungdaesuh
Copy link
Owner

@jungdaesuh jungdaesuh commented Jan 10, 2026

Summary

  • Reassign the surface returned by SurfaceRZFourier.change_resolution in both set_indata() and set_mpol_ntor()
  • Compare only declared VmecInput fields in the VMEC2000 compatibility test
  • Keep simsopt compatibility aligned with upstream API change

Context

simsopt changed SurfaceRZFourier.change_resolution to return a new surface instead of mutating in place:

https://github.com/hiddenSymmetries/simsopt/commit/4384f74b6c90574f4dfd87283e61debedac4442a

Testing

  • Local (macOS):
    • pytest -q tests/test_simsopt_compat.py → 37 passed, 1 skipped (vmec module unavailable)
  • Docker (linux/amd64, simsopt image):
    • pytest -q tests/test_simsopt_compat.py → 38 passed

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.

2 participants