eva package#

Subpackages#

Submodules#

eva.eva_driver module#

eva.eva_driver.eva(eva_config, eva_logger=None)[source]#

Execute the Evaluation and Visualization Analysis (EVA) process based on the provided configuration.

Parameters:
  • eva_config (dict or str) – Configuration data for the EVA process. It can be a dictionary or

  • file. (the path to a YAML configuration) –

  • eva_logger (Logger, optional) – An instance of the logger for logging messages. Default is

  • None.

Returns:

None

eva.eva_driver.main()[source]#

Entry point for main eva program. Reads configuration from a YAML file and executes eva based on what is described in the configuration file.

Parameters:

config_file (str) – The path to the configuration YAML file.

Returns:

None

eva.eva_interactive module#

class eva.eva_interactive.EvaInteractive[source]#

Bases: object

A class for interactive data manipulation and visualization using the EVA framework.

This class provides methods to load data collections, perform data transformations, and generate various types of plots.

logger#

An instance of the Logger class for logging messages.

Type:

Logger

timer#

An instance of the Timing class for measuring execution time.

Type:

Timing

dc_dict#

A dictionary containing data collections indexed by collection names.

Type:

dict

fn_dict#

A dictionary containing filenames associated with data collections.

Type:

dict

ch_required_dict#

A dictionary indicating whether channel requirements are needed for

Type:

dict

each data collection.
var_cache#

A list to cache variable names.

Type:

list

Initialize the EvaInteractive instance with necessary attributes.

accept_where(new_name, starting_field, where, collection, var_list=[])[source]#

Apply an ‘accept_where’ transformation to the data collection based on specified conditions.

Parameters:
  • new_name (str) – Name of the new variable to be created.

  • starting_field (str) – Field to which the ‘where’ conditions are applied.

  • where (list) – List of expressions specifying conditions for accepting data.

  • collection (str) – Name of the data collection.

  • var_list (list, optional) – List of variable names to be used in the expressions. Default

  • list. (is an empty) –

arithmetic(new_name, expression, collection, var_list=[])[source]#

Apply an arithmetic transformation to the data collection.

Parameters:
  • new_name (str) – Name of the new variable to be created.

  • expression (str) – Arithmetic expression to be evaluated.

  • collection (str) – Name of the data collection.

  • var_list (list, optional) – List of variable names to be used in the expression. Default

  • list. (is an empty) –

density_plot(plot_list)[source]#

Generate a density plot using specified data collections and variables.

Parameters:

plot_list (list) – List of dictionaries specifying the plot configuration.

Returns:

The generated density plot.

Return type:

holoviews.plotting.ElementPlot

get_data_collection(collection_name)[source]#

Retrieve a data collection by its name.

Parameters:

collection_name (str) – Name of the data collection to retrieve.

Returns:

The retrieved data collection instance.

Return type:

DataCollections

Raises:

Exception – If the specified collection does not exist.

histogram(plot_list)[source]#

Generate a histogram plot using specified data collections and variables.

Parameters:

plot_list (list) – List of dictionaries specifying the plot configuration.

Returns:

The generated histogram plot.

Return type:

holoviews.plotting.ElementPlot

line_plot(plot_list)[source]#

Generate a line plot using specified data collections and variables.

Parameters:

plot_list (list) – List of dictionaries specifying the plot configuration.

Returns:

The generated line plot.

Return type:

holoviews.plotting.ElementPlot

load_collection(collection_name, filenames, eva_class_name, control_file=None)[source]#

Load a data collection into the EvaInteractive instance.

Parameters:
  • collection_name (str) – Name for the loaded data collection.

  • filenames (str or list) – Filename(s) containing the data.

  • eva_class_name (str) – Name of the EVA class for creating the data collection.

  • control_file (str, optional) – Path to the control file for configuring data collection.

  • None. (Default is) –

map_gridded()[source]#

Placeholder method for generating a gridded map plot.

map_scatter(plot_entry)[source]#

Generate a scatter plot on a map using specified data collection and variables.

Parameters:

plot_entry (dict) – Dictionary specifying the plot configuration.

Returns:

The generated scatter plot on a map.

Return type:

holoviews.plotting.ElementPlot

print_data_collection(collection_name)[source]#

Print the content of a data collection.

Parameters:

collection_name (str) – Name of the data collection to print.

print_statistics(df)[source]#

Print statistics for each column in the given DataFrame.

Parameters:

df (DataFrame) – The DataFrame containing data.

retrieve_var_list(collection, group)[source]#

Retrieve a list of variable names from a data collection’s group.

Parameters:
  • collection (str) – Name of the data collection.

  • group (str) – Name of the group within the data collection.

Returns:

List of variable names within the specified group.

Return type:

list

scatter(x, y)[source]#

Generate a scatter plot using specified data collections, variables, and coordinates.

Parameters:
  • x (str) – Name of the variable for the x-coordinate.

  • y (str) – Name of the variable for the y-coordinate.

Returns:

The generated scatter plot.

Return type:

holoviews.plotting.ElementPlot

eva.eva_path module#

eva.eva_path.return_eva_path()[source]#

Return the directory path of the current script file.

Returns:

Directory path of the current script file.

Return type:

str

eva.eva_tests module#

eva.eva_tests.application_tests(logger)[source]#

Run Eva application tests using specified configurations.

Parameters:

logger (Logger) – An instance of the Logger class for logging messages.

eva.eva_tests.main()[source]#

Main function for running Eva test suite.

eva.eva_tests.notebook_tests(logger)[source]#

Run Eva notebook tests by executing specified notebooks.

Parameters:

logger (Logger) – An instance of the Logger class for logging messages.

Module contents#