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.
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:becomes
which should be easy to do with a single find-and-replace
.SetBoundaryCond(
→.SetBoundaryCond(*
.All the rest I think should be backwards compatible.