-
Notifications
You must be signed in to change notification settings - Fork 18
/
utils.py
33 lines (20 loc) · 877 Bytes
/
utils.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from pathlib import Path
def get_project_root() -> Path:
return Path(__file__).resolve().parent.absolute()
class PathUtils:
"""
Utils for file names
"""
# FOLDERS
# Input netwroks
input_networks_folder = get_project_root() / "tntp_networks"
processed_networks_folder = get_project_root() / "processed_networks"
# FILES
# Network files
anaheim_net_file = input_networks_folder / "Anaheim_net.tntp"
barcelona_net_file = input_networks_folder / "Barcelona_net.tntp"
braess_net_file = input_networks_folder / "Braess_net.tntp"
chicago_net_file = input_networks_folder / "ChicagoSketch_net.tntp"
eastern_massachusetts_net_file = input_networks_folder / "EMA_net.tntp"
sioux_falls_net_file = input_networks_folder / "SiouxFalls_net.tntp"
winnipeg_net_file = input_networks_folder / "Winnipeg_net.tntp"