Skip to content

Fixing all Examples#42

Merged
eduardolneto merged 10 commits into
eg/analysisfrom
en/review_eg/examples_fix
Jul 16, 2026
Merged

Fixing all Examples#42
eduardolneto merged 10 commits into
eg/analysisfrom
en/review_eg/examples_fix

Conversation

@eduardolneto

Copy link
Copy Markdown
Contributor

This is a pull request to clean examples and make them work with PR #36 to PR #40. Due to the new changed requesting during pull request some of them stopped working. So I had to add some changes to coils and surface classes to make them work again. There is however, still a problem with examples using stochastic optimization and the classifier object.

@rogeriojorge rogeriojorge left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A couple of changes asked for

Comment thread tests/test_objective_functions.py Outdated
Comment thread tests/test_objective_functions.py
Comment thread examples/particle_tracing/trace_particles_coils_guidingcenter.py Outdated
Comment thread examples/particle_tracing/trace_particles_vmec_Electric_field.py Outdated
Comment thread examples/particle_tracing/trace_particles_vmec_Electric_field.py Outdated
Comment thread examples/coil_optimization/optimize_coils_particle_confinement_guidingcenter.py Outdated
Comment thread examples/coil_optimization/optimize_coils_particle_confinement_guidingcenter.py Outdated
@EstevaoMGomes EstevaoMGomes changed the title Slightly correcting bugs in modifications coils.py Fixing all examples Jul 10, 2026
@EstevaoMGomes EstevaoMGomes changed the title Fixing all examples Fixing all Examples Jul 10, 2026
@eduardolneto

eduardolneto commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

The only example not working is with from_simsopt method. but I dopnt have a solution for this yet. I would merge this and solve that after. The change fo PR #43 works also on older diffrax version. @rogeriojorge @EstevaoMGomes

@rogeriojorge rogeriojorge left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A couple of small things, and then it's ready to merge

Comment thread tests/test_objective_functions.py Outdated
Comment thread essos/objective_functions.py
Comment thread examples/coil_optimization/optimize_coils_particle_confinement_guidingcenter.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

examples Update example files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants