Releases
v1.0.0
Published on April 13, 2021.
We now offer you the best API Comsol has ever seen! 🎉
See "Creating models: Python style" for a feature demonstration.
A new Node
class allows easy navigation of the model tree.
The Model
class relies internally on Node
for most functionality.
Feature nodes can be created with Model.create()
.
Node properties can be read and written via Model.property()
.
Feature nodes can be removed with Model.remove()
.
The Node
class has additional functionality for modifying the model.
All feature nodes can now be toggled , not just physics features.
Model.features()
and Model.toggle()
have been deprecated.
Use the Node
class instead to access that functionality.
Model.import_()
was introduced to supersede Model.load()
.
Arguments unit
and description
to Model.parameter()
are deprecated.
Parameter descriptions should now be accessed via Model.description()
.
Model.parameters()
now returns a dictionary instead of named tuples .
This is a breaking change, but in line with other parts of the API.
mph.start()
now picks a random free server port in client-server mode.
This avoids collisions when starting multiple processes on Linux and macOS.
Models may be saved as Java, Matlab, or VBA source files.
mph.tree()
helps developers inspect the model tree in the console.
Known issue: Navigating the model tree is slow in client–server mode.
It is much faster in stand-alone mode, the default on Windows.
Made folder search case-insensitive on Linux/macOS, as requested in #31 .
Documentation builds now use the MyST parser and the Furo theme .
You can’t perform that action at this time.