iota2.configuration_files.check_config_parameters

This module contains all functions for testing known configuration parameters

These test must concern only typing

They can be overloaded by providing custom check.

Functions

all_sameBands(items)

check_chain_parameters(cfg, path_conf)

check_external_features(cfg, path_conf)

This function returns True if the custom features are activated and all imports succeed

check_glob_chain_parameters(cfg, path_conf)

check_nn_module(cfg, path_conf)

check_sample_augmentation(cfg, path_conf)

check_sample_selection(cfg, path_conf)

check_tiled_exogenous_data(cfg, path_conf)

if multiple tiles are used with exogenous data, make sure the name contains $TILE

get_external_features_functions(module_path, ...)

search for functions given by name returns found_functions and not_found_functions module_path: path of custom external features function_names: names of the searched functions

get_iota2_project_dir()

get_param(cfg, section, variable)

Return the value of variable in the section from config file define in the init phase of the class.

is_field_in_vector_data(vector_file, data_field)

This function open a shapefile and search the data_field.

region_vector_field_as_string(cfg)

This function raise an error if region field is not a string

search_external_features_function(...)

searches function first in user defined module and then fallbacks to iota2 module path

signature(obj, *[, follow_wrapped])

Get a signature object for the passed callable.

test_ifexists(path)

test_shape_name(input_vector)

test_var_config_file(cfg, section, variable, ...)

This function check if variable is in obj and if it has varType type.

type_check_callable_kwargs(callable, kwargs)

checks if kwargs type match callable callable: the calloable to check against kwargs: keyword arguments to check against callable

type_check_functions_kwargs(functions, flist)

checks keword arguments typing functions: a dictionnary mapping function name to associated callable flist: a list of tuples with function names / arguments

verify_code_path(code_path)

checks the code path returns False if code path refers to default external_code raises an error if code path refers to non existing custom code file returns True if the code path refers to an existing custom code file

verify_import(module_path)

Check if a module can be imported

Classes

Iota2NeuralNetwork(nb_features, nb_class[, ...])

every neural networks provided by iota2 must inherit from this one to ensure some specific signatures.