Changed gennet code to match future changes

This commit is contained in:
Alberto Soutullo
2023-01-18 15:05:05 +01:00
parent ed6f5317f4
commit 9479746c73
2 changed files with 3 additions and 3 deletions

View File

@@ -235,10 +235,10 @@ def main(config_file: str = './config/gennet.yml'):
# # Refuse to overwrite non-empty dirs
# if exists_or_nonempty(config_obj['general']['topology_path']):
# sys.exit(1)
os.makedirs('./topology/', exist_ok=True)
os.makedirs('./config/topology_generated/', exist_ok=True)
# Generate file format specific data structs and write the files; optionally, draw the network
generate_and_write_files('./topology/', config_obj['general']['num_topics'], config_obj['general']['num_subnets'], G)
generate_and_write_files('./config/topology_generated/', config_obj['general']['num_topics'], config_obj['general']['num_subnets'], G)
#draw(dirname, G)