3 Created on Fri Sep 4 18:19:06 2015
8 Boreal Scientific Computing LLC, Fairbanks, Alaska, USA
9 Don.Morton@borealscicomp.com
10 http://www.borealscicomp.com/
24 'mother_all_vars_rmse',
26 'mother_all_vars_maxabserr',
27 'nest_all_vars_maxabserr'
31 def __init__(self, output_dir=None, control_output_dir=None):
34 if os.path.isdir(output_dir):
37 raise Exception(
'Unable to find output_dir: ' + output_dir)
39 raise Exception(
'No output_dir defined')
41 if control_output_dir:
42 if os.path.isdir(control_output_dir):
45 raise Exception(
'Unable to find control_output_dir: ' + control_output_dir)
47 raise Exception(
'No control_output_dir defined')
54 """ Return list of the valid test types """
62 raise Exception(
'Invalid test_type: ' + str(test_type))
66 if test_type
in [
'nest_all_vars_rmse',
'nest_all_vars_maxabserr']:
73 control_output = FlexpartOutput.FlexpartOutput(
76 test_output = FlexpartOutput.FlexpartOutput(
86 if test_type
in [
'mother_all_vars_rmse',
'nest_all_vars_rmse']:
87 err_val = error_object.rmse()
88 elif test_type
in [
'mother_all_vars_maxabserr',
'nest_all_vars_maxabserr']:
89 err_val = error_object.max_absolute_error()
def calculate_test_minus_control