spirit-code / spirit

Atomistic Spin Simulation Framework
http://spirit-code.github.io
MIT License
118 stars 52 forks source link

Core: "Pythonify" the simulation bindings #427

Closed GPMueller closed 6 years ago

GPMueller commented 6 years ago

Instead of doing it with strings, it would be better to have functions

simulation.llg.play_pause("SIB")
simulation.gneb.play_pause("VP")

which would then pass the corresponding strings into the C API.

GPMueller commented 6 years ago

This is actually not so great. The named function parameters make the unified function nice to use in the Python API. Note: added integers for Methods and Solvers with 02682726c931b2b774044e99b1c6b2085e519752 on feature-improved-api.