-
Notifications
You must be signed in to change notification settings - Fork 0
/
project_config.py
25 lines (21 loc) · 813 Bytes
/
project_config.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
'''
PROJECT CONFIGURATION FILE
This file contains the configuration variables for the project. The variables are used
in the other scripts to define the paths to the data and results directories. The variables
are also used to set the random seed for reproducibility.
'''
# import libraries
import os
from pathlib import Path
# check if on O2 or not
home_variable = os.getenv('HOME')
on_remote = (home_variable == "/home/an252")
# define base project directory based on whether on O2 or not
if on_remote:
PROJECT_DIR = Path('')
else:
PROJECT_DIR = Path('/Users/an583/Library/CloudStorage/OneDrive-Personal/Academic/College/Junior Year/Fall Term/COMPSCI 252R/molecule-synthesis')
# define project configuration variables
DATA_DIR = PROJECT_DIR / 'Data'
RESULTS_DIR = PROJECT_DIR / 'Results'
SEED = 42