def attributeRange(self, attrName, variableSubstitution=True): """ Return a range tuple (string, string) for the given attribute name. Workflow variables are substituted by default. """ seqRange = self.attributeNamed(attrName).seqRange if variableSubstitution: seqRange = (depends_variables.substitute(seqRange[0]), depends_variables.substitute(seqRange[1])) return seqRange
def outputRange(self, outputName, variableSubstitution=True): """ Return a range tuple (string, string) for the given output name. Workflow variables are substituted by default. """ seqRange = self.outputNamed(outputName).seqRange if seqRange and seqRange[0] and seqRange[1] and variableSubstitution: seqRange = (depends_variables.substitute(seqRange[0]), depends_variables.substitute(seqRange[1])) return seqRange
def attributeRange(self, attrName, variableSubstitution=True): """ Return a range tuple (string, string) for the given attribute name. Workflow variables are substituted by default. """ seqRange = self.attributeNamed(attrName).seqRange if variableSubstitution: seqRange = (depends_variables.substitute(seqRange[0]), depends_variables.substitute(seqRange[1])) return seqRange
def outputRange(self, outputName, variableSubstitution=True): """ Return a range tuple (string, string) for the given output name. Workflow variables are substituted by default. """ seqRange = self.outputNamed(outputName).seqRange if seqRange and seqRange[0] and seqRange[1] and variableSubstitution: seqRange = (depends_variables.substitute(seqRange[0]), depends_variables.substitute(seqRange[1])) return seqRange
def attributeValue(self, attrName, variableSubstitution=True): """ Return a value string for the given attribute name. Workflow variables are substituted by default. """ value = self.attributeNamed(attrName).value if variableSubstitution: value = depends_variables.substitute(value) return value
def outputValue(self, outputName, subOutputName, variableSubstitution=True): """ Return a value string for the given output name and sub-name. Workflow variables are substituted by default. """ value = self.outputNamed(outputName).value[subOutputName] if variableSubstitution: value = depends_variables.substitute(value) return value
def inputValue(self, inputName, variableSubstitution=True): """ Return a value string for the given input name. Workflow variables are substituted by default. """ value = self.inputNamed(inputName).value if variableSubstitution: value = depends_variables.substitute(value) return value
def attributeValue(self, attrName, variableSubstitution=True): """ Return a value string for the given attribute name. Workflow variables are substituted by default. """ value = self.attributeNamed(attrName).value if variableSubstitution: value = depends_variables.substitute(value) return value
def inputValue(self, inputName, variableSubstitution=True): """ Return a value string for the given input name. Workflow variables are substituted by default. """ value = self.inputNamed(inputName).value if variableSubstitution: value = depends_variables.substitute(value) return value
def outputValue(self, outputName, subOutputName, variableSubstitution=True): """ Return a value string for the given output name and sub-name. Workflow variables are substituted by default. """ value = self.outputNamed(outputName).value[subOutputName] if variableSubstitution: value = depends_variables.substitute(value) return value