-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
executable file
·44 lines (33 loc) · 1.13 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"""
Name: config.py
Arguments:
Keywords:
Purpose:
"""
# Jonathan Bird
# Created: 2013-08-03
# Last modified: 2013-08-03
#--------------------------------------------------------------------------
#**************************************************************************
#--------------------------------------------------------------------------
## Modules:
from __future__ import print_function, division, absolute_import
import os
import sys
#import time
import numpy as np
#import matplotlib.pyplot as plt
#import math as m
#import scipy as sp
#import itertools
##--------------------------------------------------------------------------##
_baseDir = os.getenv('BASE_DIR')
_rootDir = os.getenv('ROOT_DIR')
_rootFile = os.getenv('ROOT_FILE')
if not _baseDir:
#environment variables were not assigned
print ('Environment Variable $BASE_DIR not found, please load...')
sys.exit()
pars = ['simdir_root', 'file_root', 'rotsim_dir', 'dc_dir', 'iord_dir', 'fig_dir']
vals = [_rootDir, _rootFile, _baseDir+'rotated_simsnaps/', _baseDir+'dc/', _baseDir+'iord/', _baseDir+'plots/']
params = {p : v for p,v in zip(pars,vals)}