Package data :: Module mol_res_spin :: Class SpinContainer
[hide private]
[frames] | no frames]

Class SpinContainer

source code


Class containing all the spin system specific data.

Instance Methods [hide private]
 
__init__(self, spin_name=None, spin_num=None, select=True)
Set up the default objects of the spin system data container.
source code
 
__repr__(self)
The string representation of the object.
source code
 
_back_compat_hook(self, file_version=None)
Method for converting old spin data structures to the new ones.
source code
 
_back_compat_hook_mf_data(self)
Converting the old model-free parameter vector to the new one.
source code
 
_back_compat_hook_ri_data(self)
Converting the old spin relaxation data structures to the new ones.
source code
bool
is_empty(self)
Method for testing if this SpinContainer object is empty.
source code

Inherited from prototype.Prototype: __clone__, __deepcopy__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, spin_name=None, spin_num=None, select=True)
(Constructor)

source code 

Set up the default objects of the spin system data container.

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

The string representation of the object.

Rather than using the standard Python conventions (either the string representation of the value or the "<...desc...>" notation), a rich-formatted description of the object is given.

Overrides: object.__repr__

_back_compat_hook(self, file_version=None)

source code 

Method for converting old spin data structures to the new ones.

Parameters:
  • file_version (str) - The relax version used to create the XML file.

is_empty(self)

source code 

Method for testing if this SpinContainer object is empty.

Returns: bool
True if this container is empty and the spin number and name have not been set, False otherwise.