Exemple #1
0
def getAnnotation(item, annotation, delimiter=None, count=None):
    """
    Returns the annotation string for a given NASA Ames item.
    """
    if delimiter == None:
        delimiter = getDefault("default_delimiter")
    dict = parse_config.getAnnotationsConfigDict()

    if count == None:
        count_string = ""
    else:
        count_string = " %s" % count

    if annotation:
        return "%s%s%s" % (dict[item], count_string, delimiter)
    else:
        return ""
Exemple #2
0
def test_getAnnotationsConfigDict():
    ad = getAnnotationsConfigDict()
    assert ad["AMISS"] == "Missing values for each auxiliary variable"