plumed_bench_pp.utils

Functions

get_inputfiles(data)

Retrieves the set of input files from the given benchmark data.

get_kernels(data)

Returns a set of unique kernel names extracted from the benchmark data.

get_kernels_and_inputfiles(data)

Retrieves a list of tuples containing the kernel and input file names from the given benchmark data.

kernel_name(data, name)

plumed_bench_pp.utils.get_inputfiles(data: BenchmarkRun | list[BenchmarkRun]) set[str]

Retrieves the set of input files from the given benchmark data.

Parameters:

data (BenchmarkRun | list[BenchmarkRun]) – The data to extract input files from. It can be a single BenchmarkRun object or a list of BenchmarkRun objects.

Returns:

A set of unique input file names extracted from the given data.

Return type:

set[str]

plumed_bench_pp.utils.get_kernels(data: BenchmarkRun | list[BenchmarkRun]) set[str]

Returns a set of unique kernel names extracted from the benchmark data.

Parameters:

data (BenchmarkRun | list[BenchmarkRun]) – The data to extract kernel names from. It can be a single BenchmarkRun object or a list of BenchmarkRun objects.

Returns:

A set of unique kernel names extracted from the given data.

Return type:

set[str]

plumed_bench_pp.utils.get_kernels_and_inputfiles(data: BenchmarkRun | list[BenchmarkRun]) list[tuple[str, str]]

Retrieves a list of tuples containing the kernel and input file names from the given benchmark data.

Parameters:

data (BenchmarkRun | list[BenchmarkRun]) – The data to extract kernel and input file names from. It can be a single BenchmarkRun object or a list of BenchmarkRun objects.

Returns:

A list of tuples, where each tuple contains the kernel and input file names extracted from the given data.

Return type:

list[tuple[str, str]]