diff --git a/SAS/ResourceAssignment/ResourceAssignmentEstimator/CMakeLists.txt b/SAS/ResourceAssignment/ResourceAssignmentEstimator/CMakeLists.txt index ea2d8d4c8ddff636568439f305c1cf1967cd31de..f7301a4f2f9756bc247bd5fb597047dc8e5045af 100644 --- a/SAS/ResourceAssignment/ResourceAssignmentEstimator/CMakeLists.txt +++ b/SAS/ResourceAssignment/ResourceAssignmentEstimator/CMakeLists.txt @@ -1,6 +1,6 @@ # $Id: CMakeLists.txt $ -lofar_package(ResourceAssignmentEstimator 1.0 DEPENDS PyMessaging PyCommon pyparameterset) +lofar_package(ResourceAssignmentEstimator 1.0 DEPENDS PyMessaging PyCommon pyparameterset PyStationModel) lofar_find_package(Python 2.6 REQUIRED) include(PythonInstall) diff --git a/SAS/ResourceAssignment/ResourceAssignmentEstimator/test/data_sets/t_resource_estimator.out_beam_observation b/SAS/ResourceAssignment/ResourceAssignmentEstimator/test/data_sets/t_resource_estimator.out_beam_observation index 949d0e8d293befed438cfb89299efd056e566175..b5547e7920050da03c1f67616018ff463d32f847 100644 --- a/SAS/ResourceAssignment/ResourceAssignmentEstimator/test/data_sets/t_resource_estimator.out_beam_observation +++ b/SAS/ResourceAssignment/ResourceAssignmentEstimator/test/data_sets/t_resource_estimator.out_beam_observation @@ -1 +1 @@ -"{'1': {'observation': {'errors': [], 'estimates': [{'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 169869312, 'storage': 76441190400}, 'resource_count': 73, 'output_files': {'cs': {'cs_otdb_id': 1, 'identifications': ['mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.cs'], 'nr_of_cs_stokes': 1}, 'saps': [{'sap_nr': 0, 'properties': {'cs_file_size': 76441190400, 'nr_of_cs_parts': 1, 'is_tab_nr': 12, 'nr_of_cs_files': 1}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 169869312, 'storage': 76441190400}, 'resource_count': 73, 'output_files': {'cs': {'cs_otdb_id': 1, 'identifications': ['mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.cs'], 'nr_of_cs_stokes': 1}, 'saps': [{'sap_nr': 1, 'properties': {'cs_file_size': 76441190400, 'nr_of_cs_parts': 1, 'is_tab_nr': 12, 'nr_of_cs_files': 1}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 169869312, 'storage': 76441190400}, 'resource_count': 73, 'output_files': {'cs': {'cs_otdb_id': 1, 'identifications': ['mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.cs'], 'nr_of_cs_stokes': 1}, 'saps': [{'sap_nr': 2, 'properties': {'cs_file_size': 76441190400, 'nr_of_cs_parts': 1, 'is_tab_nr': 12, 'nr_of_cs_files': 1}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 169869312, 'storage': 76441190400}, 'resource_count': 1, 'output_files': {'is': {'identifications': ['mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.is'], 'is_otdb_id': 1, 'nr_of_is_stokes': 1}, 'saps': [{'sap_nr': 0, 'properties': {'is_file_size': 76441190400, 'nr_of_is_files': 1, 'is_tab_nr': 12}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 169869312, 'storage': 76441190400}, 'resource_count': 1, 'output_files': {'is': {'identifications': ['mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.is'], 'is_otdb_id': 1, 'nr_of_is_stokes': 1}, 'saps': [{'sap_nr': 1, 'properties': {'is_file_size': 76441190400, 'nr_of_is_files': 1, 'is_tab_nr': 12}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 169869312, 'storage': 76441190400}, 'resource_count': 1, 'output_files': {'is': {'identifications': ['mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.is'], 'is_otdb_id': 1, 'nr_of_is_stokes': 1}, 'saps': [{'sap_nr': 2, 'properties': {'is_file_size': 76441190400, 'nr_of_is_files': 1, 'is_tab_nr': 12}}]}}, {'root_resource_group': 'CS004', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS004RSP0', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS004RSP1', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS005', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS005RSP0', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS005RSP1', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS003', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS003RSP0', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS003RSP1', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS002', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS002RSP0', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS002RSP1', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS007', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS007RSP0', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS007RSP1', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS006', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS006RSP0', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS006RSP1', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}]}}}" +"{'1': {'observation': {'errors': [], 'estimates': [{'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 169869312, 'storage': 76441190400}, 'resource_count': 73, 'output_files': {'cs': {'cs_otdb_id': 1, 'identifications': ['mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.cs'], 'nr_of_cs_stokes': 1}, 'saps': [{'sap_nr': 0, 'properties': {'cs_file_size': 76441190400, 'nr_of_cs_parts': 1, 'is_tab_nr': 12, 'nr_of_cs_files': 1}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 169869312, 'storage': 76441190400}, 'resource_count': 73, 'output_files': {'cs': {'cs_otdb_id': 1, 'identifications': ['mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.cs'], 'nr_of_cs_stokes': 1}, 'saps': [{'sap_nr': 1, 'properties': {'cs_file_size': 76441190400, 'nr_of_cs_parts': 1, 'is_tab_nr': 12, 'nr_of_cs_files': 1}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 169869312, 'storage': 76441190400}, 'resource_count': 73, 'output_files': {'cs': {'cs_otdb_id': 1, 'identifications': ['mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.cs', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.cs'], 'nr_of_cs_stokes': 1}, 'saps': [{'sap_nr': 2, 'properties': {'cs_file_size': 76441190400, 'nr_of_cs_parts': 1, 'is_tab_nr': 12, 'nr_of_cs_files': 1}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 169869312, 'storage': 76441190400}, 'resource_count': 1, 'output_files': {'is': {'identifications': ['mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.is'], 'is_otdb_id': 1, 'nr_of_is_stokes': 1}, 'saps': [{'sap_nr': 0, 'properties': {'is_file_size': 76441190400, 'nr_of_is_files': 1, 'is_tab_nr': 12}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 169869312, 'storage': 76441190400}, 'resource_count': 1, 'output_files': {'is': {'identifications': ['mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.is'], 'is_otdb_id': 1, 'nr_of_is_stokes': 1}, 'saps': [{'sap_nr': 1, 'properties': {'is_file_size': 76441190400, 'nr_of_is_files': 1, 'is_tab_nr': 12}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 169869312, 'storage': 76441190400}, 'resource_count': 1, 'output_files': {'is': {'identifications': ['mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP0.1296.SAP0.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP1.1296.SAP1.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.is', 'mom.G735371.LOTAAS-P1296B-SAP2.1296.SAP2.obs.is'], 'is_otdb_id': 1, 'nr_of_is_stokes': 1}, 'saps': [{'sap_nr': 2, 'properties': {'is_file_size': 76441190400, 'nr_of_is_files': 1, 'is_tab_nr': 12}}]}}, {'root_resource_group': 'CS004', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS004RSP0', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS004RSP1', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS005', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS005RSP0', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS005RSP1', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS003', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS003RSP0', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS003RSP1', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS002', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS002RSP0', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS002RSP1', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS007', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS007RSP0', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS007RSP1', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS006', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS006RSP0', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS006RSP1', 'resource_types': {'rsp': 3888, 'bandwith': 3000000000}, 'resource_count': 1}]}}}" diff --git a/SAS/ResourceAssignment/ResourceAssignmentEstimator/test/data_sets/t_resource_estimator.out_interferometer_observation b/SAS/ResourceAssignment/ResourceAssignmentEstimator/test/data_sets/t_resource_estimator.out_interferometer_observation index 833004ea26d988613ba311984c828774b6dc1aca..056960269544b5a4eb7328b3a022a5ae7cecd4b2 100644 --- a/SAS/ResourceAssignment/ResourceAssignmentEstimator/test/data_sets/t_resource_estimator.out_interferometer_observation +++ b/SAS/ResourceAssignment/ResourceAssignmentEstimator/test/data_sets/t_resource_estimator.out_interferometer_observation @@ -1 +1 @@ -"{'1': {'observation': {'errors': [], 'estimates': [{'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 45688942, 'storage': 164480190400}, 'resource_count': 1, 'output_files': {'uv': {'identifications': ['mom.G737227.B1.1.T.SAP000.uv.dps', 'mom.G737227.B1.1.T.SAP001.uv.dps', 'mom.G737227.B1.1.T.SAP002.uv.dps'], 'uv_otdb_id': 1}, 'saps': [{'sap_nr': 0, 'properties': {'start_sb_nr': 0, 'nr_of_uv_files': 1, 'uv_file_size': 164480190400}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 45688942, 'storage': 164480190400}, 'resource_count': 243, 'output_files': {'uv': {'identifications': ['mom.G737227.B1.1.T.SAP000.uv.dps', 'mom.G737227.B1.1.T.SAP001.uv.dps', 'mom.G737227.B1.1.T.SAP002.uv.dps'], 'uv_otdb_id': 1}, 'saps': [{'sap_nr': 1, 'properties': {'start_sb_nr': 1, 'nr_of_uv_files': 1, 'uv_file_size': 164480190400}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 45688942, 'storage': 164480190400}, 'resource_count': 243, 'output_files': {'uv': {'identifications': ['mom.G737227.B1.1.T.SAP000.uv.dps', 'mom.G737227.B1.1.T.SAP001.uv.dps', 'mom.G737227.B1.1.T.SAP002.uv.dps'], 'uv_otdb_id': 1}, 'saps': [{'sap_nr': 2, 'properties': {'start_sb_nr': 244, 'nr_of_uv_files': 1, 'uv_file_size': 164480190400}}]}}, {'root_resource_group': 'CS001', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS001RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS001RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS002', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS002RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS002RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS003', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS003RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS003RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS004', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS004RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS004RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS005', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS005RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS005RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS006', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS006RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS006RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS007', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS007RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS007RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS011', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS011RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS011RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS013', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS013RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS013RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS017', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS017RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS017RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS021', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS021RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS021RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS024', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS024RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS024RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS026', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS026RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS026RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS028', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS028RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS028RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS030', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS030RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS030RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS031', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS031RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS031RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS032', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS032RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS032RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS101', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS101RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS101RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS103', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS103RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS103RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS201', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS201RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS201RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS301', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS301RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS301RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS302', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS302RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS302RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS401', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS401RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS401RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS501', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'CS501RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS501RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'DE602', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'DE602RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'DE603', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'DE603RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'DE605', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'DE605RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'DE609', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'DE609RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'FR606', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'FR606RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'PL610', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'PL610RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'PL611', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'PL611RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'PL612', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'PL612RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS106', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS106RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS205', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS205RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS208', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS208RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS210', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS210RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS305', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS305RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS306', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS306RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS307', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS307RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS310', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS310RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS406', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS406RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS407', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS407RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS409', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS409RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS503', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS503RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS508', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS508RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS509', 'resource_types': {'rcu': '000000000011110000001111111100000011111111111100001111111111110000001111111100000011110000000000'}, 'resource_count': 1}, {'root_resource_group': 'RS509RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'SE607', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'SE607RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'UK608', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'UK608RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}]}}}" +"{'1': {'observation': {'errors': [], 'estimates': [{'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 45688942, 'storage': 164480190400}, 'resource_count': 1, 'output_files': {'uv': {'identifications': ['mom.G737227.B1.1.T.SAP000.uv.dps', 'mom.G737227.B1.1.T.SAP001.uv.dps', 'mom.G737227.B1.1.T.SAP002.uv.dps'], 'uv_otdb_id': 1}, 'saps': [{'sap_nr': 0, 'properties': {'start_sb_nr': 0, 'nr_of_uv_files': 1, 'uv_file_size': 164480190400}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 45688942, 'storage': 164480190400}, 'resource_count': 243, 'output_files': {'uv': {'identifications': ['mom.G737227.B1.1.T.SAP000.uv.dps', 'mom.G737227.B1.1.T.SAP001.uv.dps', 'mom.G737227.B1.1.T.SAP002.uv.dps'], 'uv_otdb_id': 1}, 'saps': [{'sap_nr': 1, 'properties': {'start_sb_nr': 1, 'nr_of_uv_files': 1, 'uv_file_size': 164480190400}}]}}, {'root_resource_group': 'CEP4', 'resource_types': {'bandwidth': 45688942, 'storage': 164480190400}, 'resource_count': 243, 'output_files': {'uv': {'identifications': ['mom.G737227.B1.1.T.SAP000.uv.dps', 'mom.G737227.B1.1.T.SAP001.uv.dps', 'mom.G737227.B1.1.T.SAP002.uv.dps'], 'uv_otdb_id': 1}, 'saps': [{'sap_nr': 2, 'properties': {'start_sb_nr': 244, 'nr_of_uv_files': 1, 'uv_file_size': 164480190400}}]}}, {'root_resource_group': 'CS001', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS001RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS001RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS002', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS002RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS002RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS003', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS003RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS003RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS004', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS004RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS004RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS005', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS005RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS005RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS006', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS006RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS006RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS007', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS007RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS007RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS011', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS011RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS011RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS013', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS013RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS013RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS017', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS017RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS017RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS021', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS021RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS021RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS024', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS024RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS024RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS026', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS026RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS026RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS028', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS028RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS028RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS030', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS030RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS030RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS031', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS031RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS031RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS032', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS032RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS032RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS101', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS101RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS101RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS103', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS103RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS103RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS201', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS201RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS201RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS301', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS301RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS301RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS302', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS302RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS302RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS401', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS401RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS401RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS501', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'CS501RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'CS501RSP1', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'DE602', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'DE602RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'DE603', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'DE603RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'DE605', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'DE605RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'DE609', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'DE609RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'FR606', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'FR606RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'PL610', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'PL610RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'PL611', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'PL611RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'PL612', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'PL612RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS106', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS106RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS205', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS205RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS208', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS208RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS210', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS210RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS305', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS305RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS306', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS306RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS307', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS307RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS310', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS310RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS406', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS406RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS407', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS407RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS409', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS409RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS503', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS503RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS508', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS508RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'RS509', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100'}, 'resource_count': 1}, {'root_resource_group': 'RS509RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'SE607', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'SE607RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}, {'root_resource_group': 'UK608', 'resource_types': {'rcu': '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'}, 'resource_count': 1}, {'root_resource_group': 'UK608RSP0', 'resource_types': {'rsp': 3896, 'bandwith': 3000000000}, 'resource_count': 1}]}}}" diff --git a/SAS/ResourceAssignment/ResourceAssignmentEstimator/test/t_resource_estimator.py b/SAS/ResourceAssignment/ResourceAssignmentEstimator/test/t_resource_estimator.py index 895e45ee96e7a9de08938c76b1fde519f7b347d8..6fa51f2b591390304cd0cfd42b28257fffd8da85 100755 --- a/SAS/ResourceAssignment/ResourceAssignmentEstimator/test/t_resource_estimator.py +++ b/SAS/ResourceAssignment/ResourceAssignmentEstimator/test/t_resource_estimator.py @@ -5,6 +5,7 @@ import unittest from pprint import pprint import logging from lofar.sas.resourceassignment.resourceassignmentestimator.service import ResourceEstimatorHandler +import mock logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) @@ -15,6 +16,19 @@ logger = logging.getLogger(__name__) # ---------------------------------------------------------------------------------------------------------------------- DO_GENERATE_GOLDEN_OUTPUTS = False +def mock_receiver_units_configuration_per_station(dont_care,stations): + rcudict = {} + mockvalues = {"other": 192 * ["LBH"], + "CS": 23 * (2 * ["LBL"] + 2 * ["LBH"]) + (2 * ["LBL"] + 2 * [None]), + "RS": 23 * (2 * ["LBL"] + 2 * ["LBH"]) + (2 * ["LBL"] + 2 * [None]) + } + for station in stations: + if station[:2] in mockvalues: + rcudict[station]=mockvalues[station[:2]] + else: + rcudict[station]=mockvalues['other'] + print rcudict + return rcudict class TestEstimationsAgainstGoldenOutput(unittest.TestCase): """ @@ -33,9 +47,11 @@ class TestEstimationsAgainstGoldenOutput(unittest.TestCase): # ------------------------------------------------------------------------------------------------------------------ # Test estimation for observations - def test_estimate_for_beam_observation(self): + @mock.patch('lofar.sas.resourceassignment.resourceassignmentestimator.resource_estimators.observation.AntennaSetsParser') + def test_estimate_for_beam_observation(self, mock_asp): """ Verify estimation for a beam observation specification tree against the golden output. """ # Arrange + mock_asp().get_receiver_units_configuration_per_station=mock_receiver_units_configuration_per_station data_set_filepath = os.path.join(self.data_sets_dir, 't_resource_estimator.in_beam_observation') golden_output_filepath = os.path.join(self.data_sets_dir, 't_resource_estimator.out_beam_observation') task_type = 'observation' @@ -55,9 +71,12 @@ class TestEstimationsAgainstGoldenOutput(unittest.TestCase): self.assertEqual(len(error_messages), 0, "\nThe uut reported errors:\n" + '\n- '.join(error_messages)) self.assertEqual(self.get_datastructure_as_string(estimation), golden_estimation) - def test_estimate_for_interferometer_observation(self): + @mock.patch('lofar.sas.resourceassignment.resourceassignmentestimator.resource_estimators.observation.AntennaSetsParser', + get_receiver_units_configuration_per_station=mock_receiver_units_configuration_per_station) + def test_estimate_for_interferometer_observation(self, mock_asp): """ Verify estimation for a interferometer observation specification tree against the golden output. """ # Arrange + mock_asp().get_receiver_units_configuration_per_station=mock_receiver_units_configuration_per_station data_set_filepath = os.path.join(self.data_sets_dir, 't_resource_estimator.in_interferometer_observation') golden_output_filepath = os.path.join(self.data_sets_dir, 't_resource_estimator.out_interferometer_observation')