예제 #1
0
def pmtrLibParser(usrStr):
    """convert lib names into user strings

    >>> pmtrLibParser('g')
    'genPmtrObjs'
    """
    parsed = drawer.acronymExpand(usrStr, pmtrLibNames)
    if parsed == None:
        raise ValueError, 'bad parameter library provided: %s' % usrStr
    return parsed
예제 #2
0
def tmTypeParser(typeName):
    """utility functions for parsing user strings of texture namess

    >>> tmTypeParser('lv')
    'LiteralVertical'
    """
    parsed = drawer.acronymExpand(typeName, tmNames)
    if parsed == None:
        pass 
    return parsed
예제 #3
0
def tmTypeParser(typeName):
    """utility functions for parsing user strings of texture namess

    >>> tmTypeParser('lv')
    'LiteralVertical'
    """
    parsed = drawer.acronymExpand(typeName, tmNames)
    if parsed == None:
        pass
    return parsed
예제 #4
0
def pmtrLibParser(usrStr):
    """convert lib names into user strings

    >>> pmtrLibParser('g')
    'genPmtrObjs'
    """
    parsed = drawer.acronymExpand(usrStr, pmtrLibNames)
    if parsed == None:
        raise ValueError('bad parameter library provided: %s' % usrStr)
    return parsed
예제 #5
0
def outputExportFormatParser(typeName):
    """
    does not raise an error if no match: returns string as none

    >>> outputExportFormatParser('af')
    'audioFile'
    >>> outputExportFormatParser('ts')
    'textSpace'
    """
    parsed = drawer.acronymExpand(typeName, outputExportFormatNames)
    if parsed == None: pass
    return parsed
예제 #6
0
def outputExportFormatParser(typeName):
    """
    does not raise an error if no match: returns string as none

    >>> outputExportFormatParser('af')
    'audioFile'
    >>> outputExportFormatParser('ts')
    'textSpace'
    """
    parsed = drawer.acronymExpand(typeName, outputExportFormatNames)
    if parsed == None: pass
    return parsed
예제 #7
0
def orcTypeParser(typeName):
    """utility functions for parsing user paramter strings into proper
    parameter names. accepts short names and long names, regardless of case
    does not raise an error if no match: returns string unmodified
    """
    return drawer.acronymExpand(typeName, orcNames)  # may be none
예제 #8
0
파일: orc.py 프로젝트: ericahub/athenacl
def orcTypeParser(typeName):
    """utility functions for parsing user paramter strings into proper
    parameter names. accepts short names and long names, regardless of case
    does not raise an error if no match: returns string unmodified
    """
    return drawer.acronymExpand(typeName, orcNames) # may be none