Issue #1856: Fix HazardRecovery to work in SimulatedTime mode.

Change-Id: I811f9a87ac57c3682f282c45f5b380d7773c805b

Former-commit-id: b498e52510 [formerly beb78ae48d] [formerly 5743aebcbe] [formerly 640452837c [formerly 5743aebcbe [formerly db77c4ea478fbaaf9a9e1b64d9df008874a71548]]]
Former-commit-id: 640452837c
Former-commit-id: a67e0e6bd7abdc943eb4fe37a1a2d56de8d62a8c [formerly f0fbc3766d]
Former-commit-id: d42ae1701d
This commit is contained in:
David Gillingham 2013-08-09 10:48:13 -05:00
parent 5e3e8941ec
commit eb1b2bda8b

View file

@ -30,6 +30,14 @@
# #
# Author: lefebvre/mathewson # Author: lefebvre/mathewson
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
#
# SOFTWARE HISTORY
#
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# 08/09/13 1856 dgilling Fix script so it runs correctly
# in SimulatedTime.
########################################################################
# The MenuItems list defines the GFE menu item(s) under which the # The MenuItems list defines the GFE menu item(s) under which the
# Procedure is to appear. # Procedure is to appear.
@ -63,7 +71,7 @@ class Procedure (SmartScript.SmartScript):
skipPhenSig = [('FA','W'), ('FF','W'), ('FL','W'), ('FL','Y'), skipPhenSig = [('FA','W'), ('FF','W'), ('FL','W'), ('FL','Y'),
('MA','W'), ('SV','W'), ('TO','W'), ('EW','W')] ('MA','W'), ('SV','W'), ('TO','W'), ('EW','W')]
currentTime = int(time.time() / 3600) * 3600 #truncated currentTime = self._gmtime().unixTime()
for v in vtecTable: for v in vtecTable:
# filter based on zones # filter based on zones