Skip to content

add the strayfield kernel to strayfield in python#151

Merged
DiegoDeGusem merged 4 commits into
devfrom
strayfieldkernel-access
May 27, 2026
Merged

add the strayfield kernel to strayfield in python#151
DiegoDeGusem merged 4 commits into
devfrom
strayfieldkernel-access

Conversation

@DiegoDeGusem
Copy link
Copy Markdown
Contributor

This PR will allow the user to access the Field generated by StrayFieldKernel. This means that we don't have to use this anymore:

from _mumaxpluscpp import _demag_kernel

_demag_kernel(magnet._impl)

test_demag.py has also been changed such that it uses this new feature.

@DiegoDeGusem DiegoDeGusem requested a review from lamoreel April 30, 2026 14:43
@DiegoDeGusem DiegoDeGusem self-assigned this Apr 30, 2026
@DiegoDeGusem DiegoDeGusem added the enhancement New feature or request label Apr 30, 2026
Comment thread src/physics/strayfield.hpp Outdated
Comment thread test/test_demag.py Outdated
@DiegoDeGusem DiegoDeGusem requested a review from ilateur May 5, 2026 09:31
Copy link
Copy Markdown
Contributor

@lamoreel lamoreel left a comment

Choose a reason for hiding this comment

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

Some minor comments which you may choose to ignore 😊 .

Comment thread mumaxplus/strayfield.py Outdated
Comment thread src/physics/strayfield.hpp Outdated
@DiegoDeGusem DiegoDeGusem merged commit 5f00d95 into dev May 27, 2026
@ilateur ilateur mentioned this pull request May 27, 2026
@JonathanMaes JonathanMaes deleted the strayfieldkernel-access branch June 5, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants