TotalPowerRow¶
-
class
TotalPowerRow(table, row=None)[source]¶ Bases:
objectThe TotalPowerRow class is a row of a TotalPowerTable.
Generated from model’s revision -1, branch
Methods Summary
addStateId(id)Append a Tag to stateId id the Tag to be appended to stateId
clearSubintegrationNumber()Mark subintegrationNumber, which is an optional field, as non-existent.
compareNoAutoInc(time, configDescriptionId, …)Compare each attribute except the autoincrementable one of this TotalPowerRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(scanNumber, …)configDescriptionIdFromBin(row, eis)Set the configDescriptionId 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.
execBlockIdFromBin(row, eis)Set the execBlockId in row from the EndianInput (eis) instance.
exposureFromBin(row, eis)Set the exposure in row from the EndianInput (eis) instance.
fieldIdFromBin(row, eis)Set the fieldId in row from the EndianInput (eis) instance.
flagAntFromBin(row, eis)Set the flagAnt in row from the EndianInput (eis) instance.
flagPolFromBin(row, eis)Set the flagPol in row from the EndianInput (eis) instance.
floatDataFromBin(row, eis)Set the floatData 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.
getConfigDescriptionId()Get configDescriptionId.
getConfigDescriptionUsingConfigDescriptionId()Returns the row in the ConfigDescription table having ConfigDescription.configDescriptionId == configDescriptionId
getExecBlockId()Get execBlockId.
getExecBlockUsingExecBlockId()Returns the row in the ExecBlock table having ExecBlock.execBlockId == execBlockId
getExposure()Get exposure.
getFieldId()Get fieldId.
getFieldUsingFieldId()Returns the row in the Field table having Field.fieldId == fieldId
getFlagAnt()Get flagAnt.
getFlagPol()Get flagPol.
getFloatData()Get floatData.
getIntegrationNumber()Get integrationNumber.
getInterval()Get interval.
getOneStateId(i)Returns the Tag stored in stateId at position i.
getScanNumber()Get scanNumber.
getStateId()Get stateId.
getStateUsingStateId(i)Returns the StateRow linked to this row via the Tag stored in stateId at position i.
getStatesUsingStateId()Returns the array of StateRow linked to this row via the Tags stored in stateId
getSubintegrationNumber()Get subintegrationNumber, which is optional.
getSubscanNumber()Get subscanNumber.
getTable()Return the table to which this row belongs.
getTime()Get time.
getTimeCentroid()Get timeCentroid.
getUvw()Get uvw.
initFromBinMethods()integrationNumberFromBin(row, eis)Set the integrationNumber in row from the EndianInput (eis) instance.
intervalFromBin(row, eis)Set the interval in row from the EndianInput (eis) instance.
isAdded()isSubintegrationNumberExists()The attribute subintegrationNumber is optional.
scanNumberFromBin(row, eis)Set the scanNumber in row from the EndianInput (eis) instance.
setConfigDescriptionId(configDescriptionId)Set configDescriptionId with the specified Tag value.
setExecBlockId(execBlockId)Set execBlockId with the specified Tag value.
setExposure(exposure)Set exposure with the specified Interval [] [] value.
setFieldId(fieldId)Set fieldId with the specified Tag value.
setFlagAnt(flagAnt)Set flagAnt with the specified int [] value.
setFlagPol(flagPol)Set flagPol with the specified int [] [] value.
setFloatData(floatData)Set floatData with the specified float [] [] [] value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setIntegrationNumber(integrationNumber)Set integrationNumber with the specified int value.
setInterval(interval)Set interval with the specified Interval value.
setOneStateId(index, stateId)Set stateId[index] with the specified Tag value.
setScanNumber(scanNumber)Set scanNumber with the specified int value.
setStateId(stateId)Set stateId with the specified Tag [] value.
setSubintegrationNumber(subintegrationNumber)Set subintegrationNumber with the specified int value.
setSubscanNumber(subscanNumber)Set subscanNumber with the specified int value.
setTime(time)Set time with the specified ArrayTime value.
setTimeCentroid(timeCentroid)Set timeCentroid with the specified ArrayTime [] [] value.
setUvw(uvw)Set uvw with the specified Length [] [] value.
stateIdFromBin(row, eis)Set the stateId in row from the EndianInput (eis) instance.
subintegrationNumberFromBin(row, eis)Set the optional subintegrationNumber in row from the EndianInput (eis) instance.
subscanNumberFromBin(row, eis)Set the subscanNumber in row from the EndianInput (eis) instance.
timeCentroidFromBin(row, eis)Set the timeCentroid in row from the EndianInput (eis) instance.
timeFromBin(row, eis)Set the time 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.
uvwFromBin(row, eis)Set the uvw in row from the EndianInput (eis) instance.
Methods Documentation
-
clearSubintegrationNumber()[source]¶ Mark subintegrationNumber, which is an optional field, as non-existent.
-
compareNoAutoInc(time, configDescriptionId, fieldId, scanNumber, subscanNumber, integrationNumber, uvw, exposure, timeCentroid, floatData, flagAnt, flagPol, interval, stateId, execBlockId)[source]¶ Compare each attribute except the autoincrementable one of this TotalPowerRow with the corresponding parameters and return True if there is a match and False otherwise.
-
compareRequiredValue(scanNumber, subscanNumber, integrationNumber, uvw, exposure, timeCentroid, floatData, flagAnt, flagPol, interval, stateId, execBlockId)[source]¶
-
static
configDescriptionIdFromBin(row, eis)[source]¶ Set the configDescriptionId 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
execBlockIdFromBin(row, eis)[source]¶ Set the execBlockId in row from the EndianInput (eis) instance.
-
static
exposureFromBin(row, eis)[source]¶ Set the exposure in row from the EndianInput (eis) instance.
-
static
fieldIdFromBin(row, eis)[source]¶ Set the fieldId in row from the EndianInput (eis) instance.
-
static
flagAntFromBin(row, eis)[source]¶ Set the flagAnt in row from the EndianInput (eis) instance.
-
static
flagPolFromBin(row, eis)[source]¶ Set the flagPol in row from the EndianInput (eis) instance.
-
static
floatDataFromBin(row, eis)[source]¶ Set the floatData 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.
-
getConfigDescriptionUsingConfigDescriptionId()[source]¶ Returns the row in the ConfigDescription table having ConfigDescription.configDescriptionId == configDescriptionId
-
getExecBlockUsingExecBlockId()[source]¶ Returns the row in the ExecBlock table having ExecBlock.execBlockId == execBlockId
-
getStateUsingStateId(i)[source]¶ Returns the StateRow linked to this row via the Tag stored in stateId at position i.
-
getStatesUsingStateId()[source]¶ Returns the array of StateRow linked to this row via the Tags stored in stateId
-
getSubintegrationNumber()[source]¶ Get subintegrationNumber, which is optional. return subintegrationNumber as int raises ValueError If subintegrationNumber does not exist.
-
static
integrationNumberFromBin(row, eis)[source]¶ Set the integrationNumber in row from the EndianInput (eis) instance.
-
static
intervalFromBin(row, eis)[source]¶ Set the interval in row from the EndianInput (eis) instance.
-
isSubintegrationNumberExists()[source]¶ The attribute subintegrationNumber is optional. Return True if this attribute exists. return True if and only if the subintegrationNumber attribute exists.
-
static
scanNumberFromBin(row, eis)[source]¶ Set the scanNumber in row from the EndianInput (eis) instance.
-
setConfigDescriptionId(configDescriptionId)[source]¶ Set configDescriptionId with the specified Tag value. configDescriptionId The Tag value to which configDescriptionId is to be set. The value of configDescriptionId 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.
-
setExecBlockId(execBlockId)[source]¶ Set execBlockId with the specified Tag value. execBlockId The Tag value to which execBlockId is to be set. The value of execBlockId can be anything allowed by the Tag constructor.
-
setExposure(exposure)[source]¶ Set exposure with the specified Interval [] [] value. exposure The Interval [] [] value to which exposure is to be set. The value of exposure can be anything allowed by the Interval [] [] constructor.
-
setFieldId(fieldId)[source]¶ Set fieldId with the specified Tag value. fieldId The Tag value to which fieldId is to be set. The value of fieldId 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.
-
setFlagAnt(flagAnt)[source]¶ Set flagAnt with the specified int [] value. flagAnt The int [] value to which flagAnt is to be set.
-
setFlagPol(flagPol)[source]¶ Set flagPol with the specified int [] [] value. flagPol The int [] [] value to which flagPol is to be set.
-
setFloatData(floatData)[source]¶ Set floatData with the specified float [] [] [] value. floatData The float [] [] [] value to which floatData 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.
-
setIntegrationNumber(integrationNumber)[source]¶ Set integrationNumber with the specified int value. integrationNumber The int value to which integrationNumber is to be set.
-
setInterval(interval)[source]¶ Set interval with the specified Interval value. interval The Interval value to which interval is to be set. The value of interval can be anything allowed by the Interval constructor.
-
setOneStateId(index, stateId)[source]¶ Set stateId[index] with the specified Tag value. index The index in stateId where to set the Tag value. stateId The Tag value to which stateId[index] is to be set.
-
setScanNumber(scanNumber)[source]¶ Set scanNumber with the specified int value. scanNumber The int value to which scanNumber is to be set.
-
setStateId(stateId)[source]¶ Set stateId with the specified Tag [] value. stateId The Tag [] value to which stateId is to be set. The value of stateId can be anything allowed by the Tag [] constructor.
-
setSubintegrationNumber(subintegrationNumber)[source]¶ Set subintegrationNumber with the specified int value. subintegrationNumber The int value to which subintegrationNumber is to be set.
-
setSubscanNumber(subscanNumber)[source]¶ Set subscanNumber with the specified int value. subscanNumber The int value to which subscanNumber is to be set.
-
setTime(time)[source]¶ Set time with the specified ArrayTime value. time The ArrayTime value to which time is to be set. The value of time can be anything allowed by the ArrayTime constructor.
Raises a ValueError If an attempt is made to change a part of the key after is has been added to the table.
-
setTimeCentroid(timeCentroid)[source]¶ Set timeCentroid with the specified ArrayTime [] [] value. timeCentroid The ArrayTime [] [] value to which timeCentroid is to be set. The value of timeCentroid can be anything allowed by the ArrayTime [] [] constructor.
-
setUvw(uvw)[source]¶ Set uvw with the specified Length [] [] value. uvw The Length [] [] value to which uvw is to be set. The value of uvw can be anything allowed by the Length [] [] constructor.
-
static
stateIdFromBin(row, eis)[source]¶ Set the stateId in row from the EndianInput (eis) instance.
-
static
subintegrationNumberFromBin(row, eis)[source]¶ Set the optional subintegrationNumber in row from the EndianInput (eis) instance.
-
static
subscanNumberFromBin(row, eis)[source]¶ Set the subscanNumber in row from the EndianInput (eis) instance.
-