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

Pythonize/open ems #153

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

SengerM
Copy link

@SengerM SengerM commented Oct 27, 2024

Interface is more robust and user friendly. Did it only for some functions I am using.

Important

In openEMS.SetBoundaryCond I changed the interface, instead of receiving a list with 6 elements, it receives the 6 elements as function arguments. Advantages:

  • It is obvious from the source code what is each element.
  • Makes it possible to use named arguments with any arbitrary ordering.
  • More robust.
    The conversion from any code running with the previous interface to the new interface should be straightforward:
ems.SetBoundaryCond(my_BC)

becomes

ems.SetBoundaryCond(*my_BC)

which should be easy to do with a single find-and-replace .SetBoundaryCond(.SetBoundaryCond(*.

All the rest I think should be backwards compatible.

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.

1 participant