-
Notifications
You must be signed in to change notification settings - Fork 1
/
TICR_hmsConfig.py
30 lines (24 loc) · 1.24 KB
/
TICR_hmsConfig.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
# Simple python class for a constant configuration
# that is used through all HEC Python/Jython scripts
class HecConfig:
"""Simple class maintaining configuration for HEC applications"""
def __init__(self):
import parent_hecConfig_CalSag
# Sets initial batch of config options from parent_hecConfig_USC.py
self = parent_hecConfig_CalSag.setme1(self)
# Name of directory that contains the model versions
self.hmsProjectPath = self.modelVersion + "DesignRuns"
self.osHmsProjectPath = self.osHmsVersion + "DesignRuns"
#self.rasProjectPath = self.modelVersion + "RAS/PCEB/"
self.hmsProjectName = "TICR_Design"
self.parent_hecConfig = "parent_hecConfig_CalSag"
self.basinin = self.hmsProjectPath + "/TICR_Design.basin.backup"
self.basinout = self.hmsProjectPath + "/TICR_Design.basin"
# Sets second batch of config options from parent_hecConfig_USC.py
self = parent_hecConfig_CalSag.setme2hms(self)
def getDataTransferFilePath(self):
return self.scriptPath + "/jythonDtf.txt"
def getHmsProjectPath(self):
return self.hmsProjectPath
def getHmsProjectName(self):
return self.hmsProjectName