perun.core¶
Core perun functionality.
Attributes¶
Classes¶
Perun object. |
Module Contents¶
- class perun.core.Perun(config: configparser.ConfigParser)[source]¶
Perun object.
- config¶
- postprocess_callbacks: Dict[str, Callable[[perun.data_model.data.DataNode], None]]¶
- warmup_round: bool = False¶
- property comm: perun.comm.Comm¶
Lazy initialization of mpi communication object.
- property hostname: str¶
Lazy initialization of hostname.
- Returns:
Local rank hostname.
- Return type:
str
- property backends: Dict[str, perun.backend.Backend]¶
Lazy initialization of backends dictionary.
- Returns:
Dictionary of available backends.
- Return type:
Dict[str, Backend]
- property host_rank: Dict[str, List[int]]¶
Lazy initialization of host_rank dictionary.
- Returns:
Dictionary with key (hostname) and values (list of ranks in host)
- Return type:
Dict[str, List[int]]
- property l_available_sensors: Dict[str, Tuple]¶
Lazy initialization of local available sensors.
- Returns:
Local available sensor.
- Return type:
Dict[str, Tuple[str]]
- property g_available_sensors: List[Dict[str, Tuple]]¶
Lazy initialization of global available sensors.
- Returns:
Global available sensor.
- Return type:
List[Dict[str, Tuple[str]]]
- property g_assigned_sensors: List[Dict[str, Tuple]]¶
Lazy initialization of global sensors assignment.
- Returns:
Local assigned sensors.
- Return type:
List[Dict[str, Tuple[str]]]
- property l_assigned_sensors: Dict[str, Tuple]¶
Lazy initialization of local assigned sensors.
- Returns:
Local assigned sensors.
- Return type:
Dict[str, Tuple[str]]
- property l_host_metadata: Dict[str, Any]¶
Lazy initialization of local metadata dictionary.
- Returns:
Metadata dictionary
- Return type:
Dict[str, Any]
- property l_backend_metadata: Dict[str, Any]¶
Lazy initialization of local metadata dictionary.
- Returns:
Metadata dictionary
- Return type:
Dict[str, Any]
- mark_event(region_id: str) None[source]¶
Mark an event for a specific region.
- Parameters:
region_id (str) – The ID of the region to mark the event for.
- monitor_application(app: perun.monitoring.application.Application) Any[source]¶
Execute coordination, monitoring, post-processing, and reporting steps, in that order.
- Parameters:
app (Path) – App script file path
- Returns:
Last result of the application execution, only when the perun decorator is used.
- Return type:
Any
- import_from(filePath: pathlib.Path, format: perun.io.io.IOFormat) perun.data_model.data.DataNode[source]¶
Import data node from given filepath.
- export_to(dataOut: pathlib.Path, dataNode: perun.data_model.data.DataNode, format: perun.io.io.IOFormat, mr_id: str = '') None[source]¶
Export data to selected format.