-
Notifications
You must be signed in to change notification settings - Fork 1
/
Example_hmsConfig.py
30 lines (24 loc) · 1.25 KB
/
Example_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_Poplar
# Sets initial batch of config options from parent_hecConfig_USC.py
self = parent_hecConfig_Poplar.setme1(self)
# Name of directory that contains the model versions
self.hmsProjectPath = self.modelVersion + "HEC-HMS/PC_EastBranchHMS/"
#self.osHmsProjectPath = self.osHmsVersion + "HMS/"
#self.rasProjectPath = self.modelVersion + "RAS/PCEB/"
self.hmsProjectName = "EastBranch_Poplar"
self.parent_hecConfig = "parent_hecConfig_Poplar"
self.basinin = self.hmsProjectPath + "PC_EastBranch.basin.backup"
self.basinout = self.hmsProjectPath + "PC_EastBranch.basin"
# Sets second batch of config options from parent_hecConfig_USC.py
self = parent_hecConfig_Poplar.setme2hms(self)
def getDataTransferFilePath(self):
return self.scriptPath + "/jythonDtf.txt"
def getHmsProjectPath(self):
return self.hmsProjectPath
def getHmsProjectName(self):
return self.hmsProjectName