magnopy.Convention.summary#

method

Convention.summary(return_as_string=False)[source]#

Gives human-readable summary of the convention.

Parameters:
return_as_stringbool, default False

Whether to print or return a str. If True, then return an str. If False, then print it.

Examples

>>> from magnopy import Convention
>>> n1 = Convention(True, True, c21=1, c22=-0.5)
>>> n1.summary()
custom convention where
  * Bonds are counted multiple times in the sum;
  * Spin vectors are normalized to 1;
  * Undefined c1 factor;
  * c21 = 1.0;
  * c22 = -0.5;
  * Undefined c31 factor;
  * Undefined c32 factor;
  * Undefined c33 factor;
  * Undefined c41 factor;
  * Undefined c421 factor;
  * Undefined c422 factor;
  * Undefined c43 factor;
  * Undefined c44 factor.