HWRF
trunk@4391
|
This module contains utilities for plugging HWRF into the Rocoto workflow manager. More...
This module contains utilities for plugging HWRF into the Rocoto workflow manager.
Functions | |
def | entity_quote (string) |
Returns a copy of the string with & " < % and > replaced with their respective XML entities & " < % and >. More... | |
def | sanity_check_failed (logger, ex) |
Logs information about a failure of a sanity check routine. More... | |
def | cycles_as_entity (cycleset) |
Returns a set of Rocoto XML <cycledef> tags to add to an XML file. More... | |
Variables | |
list | __all__ = ['cycles_as_entity'] |
List of symbols exported by "from hwrf.rocoto import *". | |
tuple | epsilon = to_timedelta(5) |
An epsilon value for time equality comparisons. | |
tuple | six_hours = to_timedelta(6*3600) |
A datetime.timedelta that represents +6 hours. | |
tuple | sanity_quotes |
A list of quotes to print (one at random) when a sanity check fails. More... | |
def hwrf.rocoto.cycles_as_entity | ( | cycleset | ) |
Returns a set of Rocoto XML <cycledef> tags to add to an XML file.
The tags will define the list of cycles specified in the cycleset argument. That argument must be a set of datetime objects.
cycleset | an iterable of cycles to convert. These can be anything accepted by hwrf.numerics.to_datetime() |
def hwrf.rocoto.entity_quote | ( | string | ) |
def hwrf.rocoto.sanity_check_failed | ( | logger, | |
ex | |||
) |
hwrf.rocoto.sanity_quotes |