Package specific_fns :: Module consistency_tests :: Class Consistency_tests
[hide private]
[frames] | no frames]

Class Consistency_tests

source code


Class containing functions specific to consistency testing.

Instance Methods [hide private]
 
__init__(self)
Initialise the class by placing API_common methods into the API.
source code
 
_set_frq(self, frq=None)
Function for selecting which relaxation data to use in the consistency tests.
source code
 
calculate(self, spin_id=None, verbosity=1, sim_index=None)
Calculation of the consistency functions.
source code
 
data_init(self, data_cont, sim=False)
Initialise the data structures.
source code
 
overfit_deselect(self, data_check=True, verbose=True)
Deselect spins which have insufficient data to support calculation.
source code
 
set_error(self, model_info, index, error)
Set the parameter errors.
source code
list of float
sim_return_param(self, model_info, index)
Return the array of simulation parameter values.
source code
list of int
sim_return_selected(self, model_info)
Return the array of selected simulation flags.
source code

Inherited from api_base.API_base: back_calc_ri, base_data_loop, bmrb_read, bmrb_write, create_mc_data, data_names, data_type, default_value, deselect, duplicate_data, eliminate, get_param_names, get_param_values, grid_search, has_errors, is_spin_param, map_bounds, minimise, model_desc, model_loop, model_statistics, model_type, molmol_macro, num_instances, pymol_macro, read_columnar_results, return_conversion_factor, return_data, return_data_desc, return_data_name, return_error, return_grace_string, return_units, return_value, set_param_values, set_selected_sim, set_update, sim_init_values, sim_pack_data, sim_return_chi2, skip_function, test_grid_ops

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  default_value_doc = Desc_container("Consistency testing defaul...
  return_data_name_doc = Desc_container("Consistency testing dat...
  _table = uf_tables.add_table(label= "table: Consistency testin...
  set_doc = Desc_container("Consistency testing set details")

Inherited from api_base.API_base: eliminate_doc, write_doc

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialise the class by placing API_common methods into the API.

Overrides: object.__init__

calculate(self, spin_id=None, verbosity=1, sim_index=None)

source code 

Calculation of the consistency functions.

Parameters:
  • spin_id (None or str) - The spin identification string.
  • verbosity (int) - The amount of information to print. The higher the value, the greater the verbosity.
  • sim_index (None or int) - The optional MC simulation index.
Overrides: api_base.API_base.calculate

data_init(self, data_cont, sim=False)

source code 

Initialise the data structures.

Parameters:
  • data_cont (instance) - The data container.
  • sim (bool) - The Monte Carlo simulation flag, which if true will initialise the simulation data structure.
Overrides: api_base.API_base.data_init

overfit_deselect(self, data_check=True, verbose=True)

source code 

Deselect spins which have insufficient data to support calculation.

Parameters:
  • data_check (bool) - A flag to signal if the presence of base data is to be checked for.
  • verbose (bool) - A flag which if True will allow printouts.
Overrides: api_base.API_base.overfit_deselect

set_error(self, model_info, index, error)

source code 

Set the parameter errors.

Parameters:
  • model_info (SpinContainer instance) - The spin container originating from model_loop().
  • index (int) - The index of the parameter to set the errors for.
  • error (float) - The error value.
Overrides: api_base.API_base.set_error

sim_return_param(self, model_info, index)

source code 

Return the array of simulation parameter values.

Parameters:
  • model_info (SpinContainer instance) - The spin container originating from model_loop().
  • index (int) - The index of the parameter to return the array of values for.
Returns: list of float
The array of simulation parameter values.
Overrides: api_base.API_base.sim_return_param

sim_return_selected(self, model_info)

source code 

Return the array of selected simulation flags.

Parameters:
  • model_info (SpinContainer instance) - The spin container originating from model_loop().
Returns: list of int
The array of selected simulation flags.
Overrides: api_base.API_base.sim_return_selected

Class Variable Details [hide private]

default_value_doc

Value:
Desc_container("Consistency testing default values")

return_data_name_doc

Value:
Desc_container("Consistency testing data type string matching patterns\
")

_table

Value:
uf_tables.add_table(label= "table: Consistency testing data types", ca\
ption= "Consistency testing data type string matching patterns.")