spirit-code / spirit

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

Configurations API: position is not uniquely defined #449

Closed SpiritSuperUser closed 5 years ago

SpiritSuperUser commented 6 years ago

the positions are not uniquely defined in all functions. setting a spin configuration (eg., plus_z), the center of the lattice is the origin while for pin, the corner is the origin

GPMueller commented 6 years ago

Tried to fix this with 9db0979a63ab28088918613daffe43d2a0329ac5. Note that API functions have changed slightly:

Also, you can now un-pin with right-click.

SpiritSuperUser commented 5 years ago

still, the get_positions function uses a different coordinate system (origin = corner) than the rest of the functions