Package data :: Module diff_tensor :: Class DiffTensorSimList
[hide private]
[frames] | no frames]

Class DiffTensorSimList

source code


Empty data container for Monte Carlo simulation diffusion tensor data.

Instance Methods [hide private]
 
__deepcopy__(self, memo)
Replacement deepcopy method.
source code
new empty list
__init__(self, param_name, diff_element, elements=None)
Initialise the Monte Carlo simulation parameter list.
source code
 
__setitem__(self, index, value)
Set the value.
source code
 
append(self, value)
Replacement function for the normal self.append() method.
source code
 
append_untouchable_item(self, value)
Append the value for an untouchable MC data structure.
source code
 
set_untouchable_item(self, index, value)
Set the value for an untouchable MC data structure.
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setslice__, __sizeof__, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, param_name, diff_element, elements=None)
(Constructor)

source code 

Initialise the Monte Carlo simulation parameter list.

This function makes the parameter name and parent object accessible to the functions of this list object.

Parameters:
  • param_name (str) - The name of the parameter.
  • diff_element (DiffTensorData element) - The parent class.
  • elements (None or int) - The optional number of elements to initialise the length of the list to.
Returns: new empty list
Overrides: object.__init__

__setitem__(self, index, value)
(Index assignment operator)

source code 

Set the value.

Overrides: list.__setitem__

append(self, value)

source code 

Replacement function for the normal self.append() method.

Overrides: list.append