def domainUpperLimitVec(domainUpperLimitVec): if isinstance(domainUpperLimitVec, (list, tuple, np.ndarray)): return "domainUpperLimitVec=" + str( np.array(getList(domainUpperLimitVec)).flatten()).strip( '[]') + inputFileDelim else: raise TypeError( "The input specification, domainUpperLimitVec, must be a list, tuple, or numpy vector of ndim or less elements of type float." )
def targetAcceptanceRate(targetAcceptanceRate): if isinstance(targetAcceptanceRate, (float, list, tuple, np.ndarray)): return "targetAcceptanceRate=" + str( np.array(getList(targetAcceptanceRate)).flatten()).strip( '[]') + inputFileDelim else: raise TypeError( "The input specification, targetAcceptanceRate, must be of type float." )
def variableNameList(variableNameList): if isinstance(variableNameList, (list, tuple)): return "variableNameList=" + inputFileDelim.join( "{0}".format( verifyEncloseString(_, "variableNameList[" + str(i) + "]")) for i, _ in enumerate(getList(variableNameList))) + inputFileDelim else: raise TypeError( "The input specification, variableNameList, must be either a list or tuple of ndim or less elements, each element of which must be of type str." )