CalReductionRow¶
-
class
CalReductionRow(table, row=None)[source]¶ Bases:
objectThe CalReductionRow class is a row of a CalReductionTable.
Generated from model’s revision -1, branch
Methods Summary
appliedCalibrationsFromBin(row, eis)Set the appliedCalibrations in row from the EndianInput (eis) instance.
calReductionIdFromBin(row, eis)Set the calReductionId in row from the EndianInput (eis) instance.
compareNoAutoInc(numApplied, …)Compare each attribute except the autoincrementable one of this CalReductionRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(numApplied, …)equalByRequiredValue(otherRow)Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.
fromBin(eis, table, attributesSeq)Given an EndianInput instance by the table (which must be a Pointing instance) and the list of attributes to be found in eis, in order, this constructs a row by pulling off values from that EndianInput in the expected order.
getAppliedCalibrations()Get appliedCalibrations.
getCalReductionId()Get calReductionId.
getInvalidConditions()Get invalidConditions.
getMessages()Get messages.
getNumApplied()Get numApplied.
getNumInvalidConditions()Get numInvalidConditions.
getNumParam()Get numParam.
getParamSet()Get paramSet.
getSoftware()Get software.
getSoftwareVersion()Get softwareVersion.
getTable()Return the table to which this row belongs.
getTimeReduced()Get timeReduced.
initFromBinMethods()invalidConditionsFromBin(row, eis)Set the invalidConditions in row from the EndianInput (eis) instance.
isAdded()messagesFromBin(row, eis)Set the messages in row from the EndianInput (eis) instance.
numAppliedFromBin(row, eis)Set the numApplied in row from the EndianInput (eis) instance.
numInvalidConditionsFromBin(row, eis)Set the numInvalidConditions in row from the EndianInput (eis) instance.
numParamFromBin(row, eis)Set the numParam in row from the EndianInput (eis) instance.
paramSetFromBin(row, eis)Set the paramSet in row from the EndianInput (eis) instance.
setAppliedCalibrations(appliedCalibrations)Set appliedCalibrations with the specified str [] value.
setCalReductionId(calReductionId)Set calReductionId with the specified Tag value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setInvalidConditions(invalidConditions)Set invalidConditions with the specified InvalidatingCondition [] value.
setMessages(messages)Set messages with the specified str value.
setNumApplied(numApplied)Set numApplied with the specified int value.
setNumInvalidConditions(numInvalidConditions)Set numInvalidConditions with the specified int value.
setNumParam(numParam)Set numParam with the specified int value.
setParamSet(paramSet)Set paramSet with the specified str [] value.
setSoftware(software)Set software with the specified str value.
setSoftwareVersion(softwareVersion)Set softwareVersion with the specified str value.
setTimeReduced(timeReduced)Set timeReduced with the specified ArrayTime value.
softwareFromBin(row, eis)Set the software in row from the EndianInput (eis) instance.
softwareVersionFromBin(row, eis)Set the softwareVersion in row from the EndianInput (eis) instance.
timeReducedFromBin(row, eis)Set the timeReduced in row from the EndianInput (eis) instance.
toBin(eos)Write this row out to the EndianOutput instance, eos.
toXML()Return this row in the form of an XML string.
Methods Documentation
-
static
appliedCalibrationsFromBin(row, eis)[source]¶ Set the appliedCalibrations in row from the EndianInput (eis) instance.
-
static
calReductionIdFromBin(row, eis)[source]¶ Set the calReductionId in row from the EndianInput (eis) instance.
-
compareNoAutoInc(numApplied, appliedCalibrations, numParam, paramSet, numInvalidConditions, invalidConditions, timeReduced, messages, software, softwareVersion)[source]¶ Compare each attribute except the autoincrementable one of this CalReductionRow with the corresponding parameters and return True if there is a match and False otherwise.
-
compareRequiredValue(numApplied, appliedCalibrations, numParam, paramSet, numInvalidConditions, invalidConditions, timeReduced, messages, software, softwareVersion)[source]¶
-
equalByRequiredValue(otherRow)[source]¶ Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.
-
static
fromBin(eis, table, attributesSeq)[source]¶ Given an EndianInput instance by the table (which must be a Pointing instance) and the list of attributes to be found in eis, in order, this constructs a row by pulling off values from that EndianInput in the expected order.
The new row object is returned.
-
getInvalidConditions()[source]¶ Get invalidConditions. return invalidConditions as InvalidatingCondition []
-
static
invalidConditionsFromBin(row, eis)[source]¶ Set the invalidConditions in row from the EndianInput (eis) instance.
-
static
messagesFromBin(row, eis)[source]¶ Set the messages in row from the EndianInput (eis) instance.
-
static
numAppliedFromBin(row, eis)[source]¶ Set the numApplied in row from the EndianInput (eis) instance.
-
static
numInvalidConditionsFromBin(row, eis)[source]¶ Set the numInvalidConditions in row from the EndianInput (eis) instance.
-
static
numParamFromBin(row, eis)[source]¶ Set the numParam in row from the EndianInput (eis) instance.
-
static
paramSetFromBin(row, eis)[source]¶ Set the paramSet in row from the EndianInput (eis) instance.
-
setAppliedCalibrations(appliedCalibrations)[source]¶ Set appliedCalibrations with the specified str [] value. appliedCalibrations The str [] value to which appliedCalibrations is to be set.
-
setCalReductionId(calReductionId)[source]¶ Set calReductionId with the specified Tag value. calReductionId The Tag value to which calReductionId is to be set. The value of calReductionId can be anything allowed by the Tag constructor.
Raises a ValueError If an attempt is made to change a part of the key after is has been added to the table.
-
setFromXML(xmlrow)[source]¶ Fill the values of this row from an XML string that was produced by the toXML() method. If xmlrow is a minidom.Element with a nodeName of row then it will be used as is. Anything else that is not a string is an error.
-
setInvalidConditions(invalidConditions)[source]¶ Set invalidConditions with the specified InvalidatingCondition [] value. invalidConditions The InvalidatingCondition [] value to which invalidConditions is to be set.
-
setMessages(messages)[source]¶ Set messages with the specified str value. messages The str value to which messages is to be set.
-
setNumApplied(numApplied)[source]¶ Set numApplied with the specified int value. numApplied The int value to which numApplied is to be set.
-
setNumInvalidConditions(numInvalidConditions)[source]¶ Set numInvalidConditions with the specified int value. numInvalidConditions The int value to which numInvalidConditions is to be set.
-
setNumParam(numParam)[source]¶ Set numParam with the specified int value. numParam The int value to which numParam is to be set.
-
setParamSet(paramSet)[source]¶ Set paramSet with the specified str [] value. paramSet The str [] value to which paramSet is to be set.
-
setSoftware(software)[source]¶ Set software with the specified str value. software The str value to which software is to be set.
-
setSoftwareVersion(softwareVersion)[source]¶ Set softwareVersion with the specified str value. softwareVersion The str value to which softwareVersion is to be set.
-
setTimeReduced(timeReduced)[source]¶ Set timeReduced with the specified ArrayTime value. timeReduced The ArrayTime value to which timeReduced is to be set. The value of timeReduced can be anything allowed by the ArrayTime constructor.
-
static
softwareFromBin(row, eis)[source]¶ Set the software in row from the EndianInput (eis) instance.
-
static
softwareVersionFromBin(row, eis)[source]¶ Set the softwareVersion in row from the EndianInput (eis) instance.
-
static