CalGainRow¶
-
class
CalGainRow(table, row=None)[source]¶ Bases:
objectThe CalGainRow class is a row of a CalGainTable.
Generated from model’s revision -1, branch
Methods Summary
calDataIdFromBin(row, eis)Set the calDataId in row from the EndianInput (eis) instance.
calReductionIdFromBin(row, eis)Set the calReductionId in row from the EndianInput (eis) instance.
compareNoAutoInc(calDataId, calReductionId, …)Compare each attribute except the autoincrementable one of this CalGainRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(startValidTime, …)endValidTimeFromBin(row, eis)Set the endValidTime in row from the EndianInput (eis) instance.
equalByRequiredValue(otherRow)Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.
fitFromBin(row, eis)Set the fit in row from the EndianInput (eis) instance.
fitWeightFromBin(row, eis)Set the fitWeight in row from the EndianInput (eis) instance.
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.
gainFromBin(row, eis)Set the gain in row from the EndianInput (eis) instance.
gainValidFromBin(row, eis)Set the gainValid in row from the EndianInput (eis) instance.
getCalDataId()Get calDataId.
getCalDataUsingCalDataId()Returns the row in the CalData table having CalData.calDataId == calDataId
getCalReductionId()Get calReductionId.
getCalReductionUsingCalReductionId()Returns the row in the CalReduction table having CalReduction.calReductionId == calReductionId
getEndValidTime()Get endValidTime.
getFit()Get fit.
getFitWeight()Get fitWeight.
getGain()Get gain.
getGainValid()Get gainValid.
getStartValidTime()Get startValidTime.
getTable()Return the table to which this row belongs.
getTotalFit()Get totalFit.
getTotalFitWeight()Get totalFitWeight.
getTotalGainValid()Get totalGainValid.
initFromBinMethods()isAdded()setCalDataId(calDataId)Set calDataId with the specified Tag value.
setCalReductionId(calReductionId)Set calReductionId with the specified Tag value.
setEndValidTime(endValidTime)Set endValidTime with the specified ArrayTime value.
setFit(fit)Set fit with the specified float value.
setFitWeight(fitWeight)Set fitWeight with the specified float value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setGain(gain)Set gain with the specified float value.
setGainValid(gainValid)Set gainValid with the specified bool value.
setStartValidTime(startValidTime)Set startValidTime with the specified ArrayTime value.
setTotalFit(totalFit)Set totalFit with the specified float value.
setTotalFitWeight(totalFitWeight)Set totalFitWeight with the specified float value.
setTotalGainValid(totalGainValid)Set totalGainValid with the specified bool value.
startValidTimeFromBin(row, eis)Set the startValidTime 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.
totalFitFromBin(row, eis)Set the totalFit in row from the EndianInput (eis) instance.
totalFitWeightFromBin(row, eis)Set the totalFitWeight in row from the EndianInput (eis) instance.
totalGainValidFromBin(row, eis)Set the totalGainValid in row from the EndianInput (eis) instance.
Methods Documentation
-
static
calDataIdFromBin(row, eis)[source]¶ Set the calDataId in row from the EndianInput (eis) instance.
-
static
calReductionIdFromBin(row, eis)[source]¶ Set the calReductionId in row from the EndianInput (eis) instance.
-
compareNoAutoInc(calDataId, calReductionId, startValidTime, endValidTime, gain, gainValid, fit, fitWeight, totalGainValid, totalFit, totalFitWeight)[source]¶ Compare each attribute except the autoincrementable one of this CalGainRow with the corresponding parameters and return True if there is a match and False otherwise.
-
compareRequiredValue(startValidTime, endValidTime, gain, gainValid, fit, fitWeight, totalGainValid, totalFit, totalFitWeight)[source]¶
-
static
endValidTimeFromBin(row, eis)[source]¶ Set the endValidTime in row from the EndianInput (eis) instance.
-
equalByRequiredValue(otherRow)[source]¶ Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.
-
static
fitWeightFromBin(row, eis)[source]¶ Set the fitWeight in row from the EndianInput (eis) instance.
-
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.
-
static
gainValidFromBin(row, eis)[source]¶ Set the gainValid in row from the EndianInput (eis) instance.
-
getCalDataUsingCalDataId()[source]¶ Returns the row in the CalData table having CalData.calDataId == calDataId
-
getCalReductionUsingCalReductionId()[source]¶ Returns the row in the CalReduction table having CalReduction.calReductionId == calReductionId
-
setCalDataId(calDataId)[source]¶ Set calDataId with the specified Tag value. calDataId The Tag value to which calDataId is to be set. The value of calDataId 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.
-
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.
-
setEndValidTime(endValidTime)[source]¶ Set endValidTime with the specified ArrayTime value. endValidTime The ArrayTime value to which endValidTime is to be set. The value of endValidTime can be anything allowed by the ArrayTime constructor.
-
setFit(fit)[source]¶ Set fit with the specified float value. fit The float value to which fit is to be set.
-
setFitWeight(fitWeight)[source]¶ Set fitWeight with the specified float value. fitWeight The float value to which fitWeight is to be set.
-
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.
-
setGain(gain)[source]¶ Set gain with the specified float value. gain The float value to which gain is to be set.
-
setGainValid(gainValid)[source]¶ Set gainValid with the specified bool value. gainValid The bool value to which gainValid is to be set.
-
setStartValidTime(startValidTime)[source]¶ Set startValidTime with the specified ArrayTime value. startValidTime The ArrayTime value to which startValidTime is to be set. The value of startValidTime can be anything allowed by the ArrayTime constructor.
-
setTotalFit(totalFit)[source]¶ Set totalFit with the specified float value. totalFit The float value to which totalFit is to be set.
-
setTotalFitWeight(totalFitWeight)[source]¶ Set totalFitWeight with the specified float value. totalFitWeight The float value to which totalFitWeight is to be set.
-
setTotalGainValid(totalGainValid)[source]¶ Set totalGainValid with the specified bool value. totalGainValid The bool value to which totalGainValid is to be set.
-
static
startValidTimeFromBin(row, eis)[source]¶ Set the startValidTime in row from the EndianInput (eis) instance.
-
static
totalFitFromBin(row, eis)[source]¶ Set the totalFit in row from the EndianInput (eis) instance.
-
static