def get_img_report_dir(): return get_configuration("config.cfg", "TestDirectory","img_report_root_directory")
def get_intel_test_dir(): return get_configuration("config.cfg", "TestDirectory", "intel_test_root_dir")
def get_simple_test_dir(): return get_configuration("config.cfg", "TestDirectory", "simple_test_root_dir")
def get_pseudo_test_dir(): return get_configuration("config.cfg", "TestDirectory", "pseudo_test_root_dir")
def get_test_files_dir(): return get_configuration("config.cfg", "TestDirectory", "test_files_directory")
def get_reports_dir(): return get_configuration("config.cfg", "TestDirectory", "reports_dir")
def get_sims_dir(): return get_configuration("config.cfg", "TestDirectory", "sims_dir")
source_location = os.path.dirname(os.path.abspath(__file__)) + "/../context" sys.path.insert(0, source_location) source_location = os.path.dirname(os.path.abspath(__file__)) + "/.." sys.path.insert(0, source_location) from aggregation_simulator.utils_configuration import get_test_files_directory, get_configuration from aggregation_simulator.network import Network from aggregation_async_simulator import run_simulation from context_aggregator.utils_same import same test_name1 = "test_network0" d = os.path.join(get_test_files_directory(), test_name1) network_file_path1 = os.path.join(d, test_name1 + ".txt") simulation_root_dir = get_configuration("config.cfg", "TestDirectory", "simple_test_root_dir") network = Network() network.read(network_file_path1) dot_file_path = os.path.join(d, network_file_path1 + ".dot") # # Code duplication from utils.py # def get_test_network(condition, network_name): d = get_test_files_directory() network_file = os.path.join(d, "%s/%s/%s.txt" % (condition, network_name, network_name)) network = Network() network.read(network_file) return network