forked from gregbyard/ICE-Coding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MPDT_revised_hecConfig.py
33 lines (27 loc) · 1.45 KB
/
MPDT_revised_hecConfig.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
# 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
self = parent_hecConfig.setme1(self)
# HEC-HMS project configuration data
self.hmsProjectPath = self.hmsVersion + "MPDT/MPDT_DesignRuns"
self.osHmsProjectPath = self.osHmsVersion + "MPDT/MPDT_DesignRuns"
# ["LucasDitch/LUDT_DesignRuns", "LucasDiversionDitch/LDDT_DesignRuns",
# "MelvinaDitch/MEDT_DesignRuns", "MPDT/MPDT_DesignRuns",
# "OakLawn/OLCR_DesignRuns", "StonyCreek/HMS/STCR_DesignRuns"]
self.hmsProjectName = "MPDT_revised"
# ["LUDT_Design", "LDDT_HMS", "MEDT_HMS", "MPDT_revised", "OLCRHMS", "STCR_combined"]
self = parent_hecConfig.setme2(self)
# comment out the next two lines when running a 24hr version
self.hmsMetFile = self.hmsProjectPath + "/100yr12hrHuff"
self.hmsGageName = "100yr12hrHuff"
self.basinin = self.hmsProjectPath + "/MPDT_levelpool - Copy.basin"
self.basinout = self.hmsProjectPath + "/MPDT_levelpool.basin"
def getDataTransferFilePath(self):
return self.scriptPath + "/jythonDtf.txt"
def getHmsProjectPath(self):
return self.hmsProjectPath
def getRasProjectPath(self):
return self.rasProjectPath