Change spinw.addg and spinw.addaniso to accept string options similarly to spinw.addcoupling. Also fix the bug in spinw.addg to enable specify atoms where g-tesor is assigned. Currently errors out when non-magnetic atoms are also present in the structure.
Change
spinw.addg
andspinw.addaniso
to accept string options similarly tospinw.addcoupling
. Also fix the bug inspinw.addg
to enable specify atoms where g-tesor is assigned. Currently errors out when non-magnetic atoms are also present in the structure.