BaseModule

class lifesimmc.core.modules.base_module.BaseModule

Class representation of the base module.

Parameters:
  • seed (int or None) – The random seed.

  • gpu_index (int or None) – The index of the GPU to use.

  • grid_size (int or None) – The size of the grid.

  • time_step_size (float or None) – The size of the time step.

  • device (str or None) – The device to use.

BaseModule.get_resource_from_name(name: str) BaseResource | None

Get the resource from the name.

Parameters:

name (str) – The name of the resource.

Returns:

The resource if found, otherwise None.

Return type:

BaseResource or None