perun.core

Core perun functionality.

Module Contents

Classes

Perun

Perun object.

Attributes

log

perun.core.log
class perun.core.Perun(config: configparser.ConfigParser)

Perun object.

property comm: perun.comm.Comm

Lazy initialization of mpi communication object.

property hostname: str

Lazy initialization of hostname.

Returns

str

Local rank hostname.

property backends: Dict[str, perun.backend.backend.Backend]

Lazy initialization of backends dictionary.

Returns

Dict[str, Backend]

Dictionary of available backends.

property host_rank: Dict[str, List[int]]

Lazy initialization of host_rank dictionary.

Returns

Dict[str, List[int]]

Dictionary with key (hostname) and values (list of ranks in host)

property sensors_config: List[Dict[str, Set[str]]]

Lazy initialization of global sensor configuration.

Returns

List[Dict[str, Set[str]]]

Global sensor configuration.

property l_sensors_config: Dict[str, Set[str]]

Lazy initialization of local sensor configuration.

Returns

Dict[str, Set[str]]

Local sensor configuration.

property l_host_metadata: Dict[str, Any]

Lazy initialization of local metadata dictionary.

Returns

Dict[str, Any]

Metadata dictionary

property l_backend_metadata: Dict[str, Any]

Lazy initialization of local metadata dictionary.

Returns

Dict[str, Any]

Metadata dictionary

__del__()

Perun object destructor.

_close_backends()

Close available backends.

mark_event(region_id: str)

Mark an event for a specific region.

Parameters

region_idstr

The ID of the region to mark the event for.

Returns

None

monitor_application(app: perun.monitoring.application.Application)

Execute coordination, monitoring, post-processing, and reporting steps, in that order.

Parameters

appPath

App script file path

_export_multirun(multirun_node: perun.data_model.data.DataNode)
_process_multirun(multirun_nodes: Dict[str, perun.data_model.data.DataNode]) perun.data_model.data.DataNode
import_from(filePath: pathlib.Path, format: perun.io.io.IOFormat) perun.data_model.data.DataNode

Import data node from given filepath.

Parameters

filePathPath

Perun data node file path.

formatIOFormat

File format.

Returns

DataNode

Imported DataNode.

export_to(dataOut: pathlib.Path, dataNode: perun.data_model.data.DataNode, format: perun.io.io.IOFormat, mr_id: str | None = None)

Export data to selected format.

Parameters

dataOutPath

Directory where data will be saved.

dataNodeDataNode

Data node to export.

formatIOFormat

Format to export data.

_run_postprocess_callbacks(dataNode: perun.data_model.data.DataNode)