grapa.scripts.script_correlations

Provides a script that performs correlation analysis on a data input. possibly, SCAPS 2-D parameter sweeps

@author: Romain Carron Copyright (c) 2026, Empa, Laboratory for Thin Films and Photovoltaics, Romain Carron

Functions

colorize_graph(graph, idx_pattern, pvals)

Colorize a graph based on parameter values.

crosscorrelations_plot(stats, pkeys, pvals, ...)

Plots cross-correlations between parameters.

crosscorrelations_stats(pvals, pattern_idx, ...)

Computes cross-correlation statistics for given parameter indices.

filter_pvals(pkeys, pvals[, filters])

Filter pvals according to filters.

guess_is_logarithm_quantity(series)

plot_correlations(pkeys, pvals[, ...])

seriesX, seriesy: tuple of column to consider groupbyparam: if True, organize data as series where possible

plot_parameters_1d(pkeys, pvals[, ...])

array of normal plots

plot_parameters_2d(pkeys, pvals[, ...])

array of scatter plots

plot_pearson(pearson, keysx, keysy[, ...])

Plots a Pearson correlation heatmap.

process_datatable(pkeys, pvals[, ...])

Main function to process a datatable type of input

process_file(filename[, datakeys, filters, ...])

Process a file contaiing correleation data.

run_standalone()

Run the script as a standalone program.

values_to_lim(values[, is_log])

Returns limits [min, max] for a list of values.

Classes

CONF()

Configuration constants

Helper()

Base helper class for parameter sweeps

HelperDatatable()

Specialized helper for datatable type of input

HelperScaps()

Specialized helper for SCAPS 2-D parameter sweeps