Exemple #1
0
def load_immortals_configuration() -> Dict:
    return json.loads(clean_json_str(resource_string('pymmortals.resources', 'immortals_config.json')))
Exemple #2
0
def get_phase1_input_string(filename: str) -> str:
    return clean_json_str(resource_string('pymmortals.resources.deployment_models', filename + '.json'))
Exemple #3
0
def load_configuration_dict(filename: str) -> Dict[str, object]:
    return json.loads(clean_json_str(resource_string('pymmortals.resources.configuration',
                                                     filename + ('' if filename.endswith('.json') else '.json'))))
Exemple #4
0
def load_canned_emulator_analysis_data_dict_list() -> List[Dict]:
    return json.loads(clean_json_str(
        resource_string('pymmortals.resources.platform_analysis', 'emulator_analysis_data.json')))
Exemple #5
0
def load_bandwidth_analysis_configuration_dict() -> Dict:
    return json.loads(
        clean_json_str(
            resource_string('pymmortals.resources.platform_analysis', 'calculated_bandwidth_visualizations.json')))
Exemple #6
0
def get_p1_test_suite(identifier: str) -> Dict:
    return json.loads(
        clean_json_str(resource_string('pymmortals.resources.p1_test_scenarios', identifier + '.json')))
Exemple #7
0
def get_p2_test_suite_test_list(suite_identifier: str):
    test_list = json.loads(clean_json_str(resource_string('pymmortals.resources.p2_test_scenarios',
                                                          suite_identifier + '.json')))
    test_identifier_list = [k['scenarioIdentifier'] for k in test_list]
    return test_identifier_list
Exemple #8
0
def get_phase1_input_dict(filename: str) -> Dict:
    return json.loads(clean_json_str(resource_string('pymmortals.resources.deployment_models', filename + '.json')))