mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
Added getForecastRun to DataAccessLayer python
This commit is contained in:
parent
fe07e86939
commit
6f8a68d8a9
1 changed files with 7 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
|||
# 07/22/14 3185 njensen Added optional/default args to newDataRequest
|
||||
# 07/30/14 3185 njensen Renamed valid identifiers to optional
|
||||
# Apr 26, 2015 4259 njensen Updated for new JEP API
|
||||
# 10/07/16 ---- mjames@ucar Added getForecastRun
|
||||
#
|
||||
#
|
||||
#
|
||||
|
@ -58,6 +59,12 @@ else:
|
|||
router = ThriftClientRouter.ThriftClientRouter(THRIFT_HOST)
|
||||
USING_NATIVE_THRIFT = True
|
||||
|
||||
def getForecastRun(cycle, times):
|
||||
fcstRun = []
|
||||
for t in times:
|
||||
if str(t)[:19] == str(cycle):
|
||||
fcstRun.append(t)
|
||||
return fcstRun
|
||||
|
||||
def getAvailableTimes(request, refTimeOnly=False):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue