FlagRow¶
-
class
FlagRow(table, row=None)[source]¶ Bases:
objectThe FlagRow class is a row of a FlagTable.
Generated from model’s revision -1, branch
Methods Summary
addAntennaId(id)Append a Tag to antennaId id the Tag to be appended to antennaId
addPairedAntennaId(id)Append a Tag to pairedAntennaId id the Tag to be appended to pairedAntennaId
addSpectralWindowId(id)Append a Tag to spectralWindowId id the Tag to be appended to spectralWindowId
antennaIdFromBin(row, eis)Set the antennaId in row from the EndianInput (eis) instance.
channelFromBin(row, eis)Set the optional channel in row from the EndianInput (eis) instance.
clearChannel()Mark channel, which is an optional field, as non-existent.
clearNumChan()Mark numChan, which is an optional field, as non-existent.
clearNumPairedAntenna()Mark numPairedAntenna, which is an optional field, as non-existent.
clearNumPolarizationType()Mark numPolarizationType, which is an optional field, as non-existent.
clearNumSpectralWindow()Mark numSpectralWindow, which is an optional field, as non-existent.
clearPairedAntennaId()Mark pairedAntennaId, which is an optional field, as non-existent.
clearPolarizationType()Mark polarizationType, which is an optional field, as non-existent.
clearSpectralWindowId()Mark spectralWindowId, which is an optional field, as non-existent.
compareNoAutoInc(startTime, endTime, reason, …)Compare each attribute except the autoincrementable one of this FlagRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(startTime, endTime, …)endTimeFromBin(row, eis)Set the endTime 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.
flagIdFromBin(row, eis)Set the flagId 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.
getAntennaId()Get antennaId.
getAntennaUsingAntennaId(i)Returns the AntennaRow linked to this row via the Tag stored in antennaId at position i.
getAntennaUsingPairedAntennaId(i)Returns the AntennaRow linked to this row via the Tag stored in pairedAntennaId at position i.
getAntennasUsingAntennaId()Returns the array of AntennaRow linked to this row via the Tags stored in antennaId
getAntennasUsingPairedAntennaId()Returns the array of AntennaRow linked to this row via the Tags stored in pairedAntennaId
getChannel()Get channel, which is optional.
getEndTime()Get endTime.
getFlagId()Get flagId.
getNumAntenna()Get numAntenna.
getNumChan()Get numChan, which is optional.
getNumPairedAntenna()Get numPairedAntenna, which is optional.
getNumPolarizationType()Get numPolarizationType, which is optional.
getNumSpectralWindow()Get numSpectralWindow, which is optional.
getOneAntennaId(i)Returns the Tag stored in antennaId at position i.
getOnePairedAntennaId(i)Returns the Tag stored in pairedAntennaId at position i.
getOneSpectralWindowId(i)Returns the Tag stored in spectralWindowId at position i.
getPairedAntennaId()Get pairedAntennaId, which is optional.
getPolarizationType()Get polarizationType, which is optional.
getReason()Get reason.
getSpectralWindowId()Get spectralWindowId, which is optional.
getSpectralWindowUsingSpectralWindowId(i)Returns the SpectralWindowRow linked to this row via the Tag stored in spectralWindowId at position i.
getSpectralWindowsUsingSpectralWindowId()Returns the array of SpectralWindowRow linked to this row via the Tags stored in spectralWindowId
getStartTime()Get startTime.
getTable()Return the table to which this row belongs.
initFromBinMethods()isAdded()isChannelExists()The attribute channel is optional.
isNumChanExists()The attribute numChan is optional.
isNumPairedAntennaExists()The attribute numPairedAntenna is optional.
isNumPolarizationTypeExists()The attribute numPolarizationType is optional.
isNumSpectralWindowExists()The attribute numSpectralWindow is optional.
isPairedAntennaIdExists()The attribute pairedAntennaId is optional.
isPolarizationTypeExists()The attribute polarizationType is optional.
isSpectralWindowIdExists()The attribute spectralWindowId is optional.
numAntennaFromBin(row, eis)Set the numAntenna in row from the EndianInput (eis) instance.
numChanFromBin(row, eis)Set the optional numChan in row from the EndianInput (eis) instance.
numPairedAntennaFromBin(row, eis)Set the optional numPairedAntenna in row from the EndianInput (eis) instance.
numPolarizationTypeFromBin(row, eis)Set the optional numPolarizationType in row from the EndianInput (eis) instance.
numSpectralWindowFromBin(row, eis)Set the optional numSpectralWindow in row from the EndianInput (eis) instance.
pairedAntennaIdFromBin(row, eis)Set the optional pairedAntennaId in row from the EndianInput (eis) instance.
polarizationTypeFromBin(row, eis)Set the optional polarizationType in row from the EndianInput (eis) instance.
reasonFromBin(row, eis)Set the reason in row from the EndianInput (eis) instance.
setAntennaId(antennaId)Set antennaId with the specified Tag [] value.
setChannel(channel)Set channel with the specified int [] [] value.
setEndTime(endTime)Set endTime with the specified ArrayTime value.
setFlagId(flagId)Set flagId with the specified Tag value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setNumAntenna(numAntenna)Set numAntenna with the specified int value.
setNumChan(numChan)Set numChan with the specified int value.
setNumPairedAntenna(numPairedAntenna)Set numPairedAntenna with the specified int value.
setNumPolarizationType(numPolarizationType)Set numPolarizationType with the specified int value.
setNumSpectralWindow(numSpectralWindow)Set numSpectralWindow with the specified int value.
setOneAntennaId(index, antennaId)Set antennaId[index] with the specified Tag value.
setOnePairedAntennaId(index, pairedAntennaId)Set pairedAntennaId[index] with the specified Tag value.
setOneSpectralWindowId(index, spectralWindowId)Set spectralWindowId[index] with the specified Tag value.
setPairedAntennaId(pairedAntennaId)Set pairedAntennaId with the specified Tag [] value.
setPolarizationType(polarizationType)Set polarizationType with the specified PolarizationType [] value.
setReason(reason)Set reason with the specified str value.
setSpectralWindowId(spectralWindowId)Set spectralWindowId with the specified Tag [] value.
setStartTime(startTime)Set startTime with the specified ArrayTime value.
spectralWindowIdFromBin(row, eis)Set the optional spectralWindowId in row from the EndianInput (eis) instance.
startTimeFromBin(row, eis)Set the startTime 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
-
addPairedAntennaId(id)[source]¶ Append a Tag to pairedAntennaId id the Tag to be appended to pairedAntennaId
-
addSpectralWindowId(id)[source]¶ Append a Tag to spectralWindowId id the Tag to be appended to spectralWindowId
-
static
antennaIdFromBin(row, eis)[source]¶ Set the antennaId in row from the EndianInput (eis) instance.
-
static
channelFromBin(row, eis)[source]¶ Set the optional channel in row from the EndianInput (eis) instance.
-
clearNumPairedAntenna()[source]¶ Mark numPairedAntenna, which is an optional field, as non-existent.
-
clearNumPolarizationType()[source]¶ Mark numPolarizationType, which is an optional field, as non-existent.
-
clearNumSpectralWindow()[source]¶ Mark numSpectralWindow, which is an optional field, as non-existent.
-
clearPolarizationType()[source]¶ Mark polarizationType, which is an optional field, as non-existent.
-
clearSpectralWindowId()[source]¶ Mark spectralWindowId, which is an optional field, as non-existent.
-
compareNoAutoInc(startTime, endTime, reason, numAntenna, antennaId)[source]¶ Compare each attribute except the autoincrementable one of this FlagRow with the corresponding parameters and return True if there is a match and False otherwise.
-
static
endTimeFromBin(row, eis)[source]¶ Set the endTime 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
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.
-
getAntennaUsingAntennaId(i)[source]¶ Returns the AntennaRow linked to this row via the Tag stored in antennaId at position i.
-
getAntennaUsingPairedAntennaId(i)[source]¶ Returns the AntennaRow linked to this row via the Tag stored in pairedAntennaId at position i.
-
getAntennasUsingAntennaId()[source]¶ Returns the array of AntennaRow linked to this row via the Tags stored in antennaId
-
getAntennasUsingPairedAntennaId()[source]¶ Returns the array of AntennaRow linked to this row via the Tags stored in pairedAntennaId
-
getChannel()[source]¶ Get channel, which is optional. return channel as int [] [] raises ValueError If channel does not exist.
-
getNumChan()[source]¶ Get numChan, which is optional. return numChan as int raises ValueError If numChan does not exist.
-
getNumPairedAntenna()[source]¶ Get numPairedAntenna, which is optional. return numPairedAntenna as int raises ValueError If numPairedAntenna does not exist.
-
getNumPolarizationType()[source]¶ Get numPolarizationType, which is optional. return numPolarizationType as int raises ValueError If numPolarizationType does not exist.
-
getNumSpectralWindow()[source]¶ Get numSpectralWindow, which is optional. return numSpectralWindow as int raises ValueError If numSpectralWindow does not exist.
-
getPairedAntennaId()[source]¶ Get pairedAntennaId, which is optional. return pairedAntennaId as Tag [] raises ValueError If pairedAntennaId does not exist.
-
getPolarizationType()[source]¶ Get polarizationType, which is optional. return polarizationType as PolarizationType [] raises ValueError If polarizationType does not exist.
-
getSpectralWindowId()[source]¶ Get spectralWindowId, which is optional. return spectralWindowId as Tag [] raises ValueError If spectralWindowId does not exist.
-
getSpectralWindowUsingSpectralWindowId(i)[source]¶ Returns the SpectralWindowRow linked to this row via the Tag stored in spectralWindowId at position i.
-
getSpectralWindowsUsingSpectralWindowId()[source]¶ Returns the array of SpectralWindowRow linked to this row via the Tags stored in spectralWindowId
-
isChannelExists()[source]¶ The attribute channel is optional. Return True if this attribute exists. return True if and only if the channel attribute exists.
-
isNumChanExists()[source]¶ The attribute numChan is optional. Return True if this attribute exists. return True if and only if the numChan attribute exists.
-
isNumPairedAntennaExists()[source]¶ The attribute numPairedAntenna is optional. Return True if this attribute exists. return True if and only if the numPairedAntenna attribute exists.
-
isNumPolarizationTypeExists()[source]¶ The attribute numPolarizationType is optional. Return True if this attribute exists. return True if and only if the numPolarizationType attribute exists.
-
isNumSpectralWindowExists()[source]¶ The attribute numSpectralWindow is optional. Return True if this attribute exists. return True if and only if the numSpectralWindow attribute exists.
-
isPairedAntennaIdExists()[source]¶ The attribute pairedAntennaId is optional. Return True if this attribute exists. return True if and only if the pairedAntennaId attribute exists.
-
isPolarizationTypeExists()[source]¶ The attribute polarizationType is optional. Return True if this attribute exists. return True if and only if the polarizationType attribute exists.
-
isSpectralWindowIdExists()[source]¶ The attribute spectralWindowId is optional. Return True if this attribute exists. return True if and only if the spectralWindowId attribute exists.
-
static
numAntennaFromBin(row, eis)[source]¶ Set the numAntenna in row from the EndianInput (eis) instance.
-
static
numChanFromBin(row, eis)[source]¶ Set the optional numChan in row from the EndianInput (eis) instance.
-
static
numPairedAntennaFromBin(row, eis)[source]¶ Set the optional numPairedAntenna in row from the EndianInput (eis) instance.
-
static
numPolarizationTypeFromBin(row, eis)[source]¶ Set the optional numPolarizationType in row from the EndianInput (eis) instance.
-
static
numSpectralWindowFromBin(row, eis)[source]¶ Set the optional numSpectralWindow in row from the EndianInput (eis) instance.
-
static
pairedAntennaIdFromBin(row, eis)[source]¶ Set the optional pairedAntennaId in row from the EndianInput (eis) instance.
-
static
polarizationTypeFromBin(row, eis)[source]¶ Set the optional polarizationType in row from the EndianInput (eis) instance.
-
setAntennaId(antennaId)[source]¶ Set antennaId with the specified Tag [] value. antennaId The Tag [] value to which antennaId is to be set. The value of antennaId can be anything allowed by the Tag [] constructor.
-
setChannel(channel)[source]¶ Set channel with the specified int [] [] value. channel The int [] [] value to which channel is to be set.
-
setEndTime(endTime)[source]¶ Set endTime with the specified ArrayTime value. endTime The ArrayTime value to which endTime is to be set. The value of endTime can be anything allowed by the ArrayTime constructor.
-
setFlagId(flagId)[source]¶ Set flagId with the specified Tag value. flagId The Tag value to which flagId is to be set. The value of flagId 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.
-
setNumAntenna(numAntenna)[source]¶ Set numAntenna with the specified int value. numAntenna The int value to which numAntenna is to be set.
-
setNumChan(numChan)[source]¶ Set numChan with the specified int value. numChan The int value to which numChan is to be set.
-
setNumPairedAntenna(numPairedAntenna)[source]¶ Set numPairedAntenna with the specified int value. numPairedAntenna The int value to which numPairedAntenna is to be set.
-
setNumPolarizationType(numPolarizationType)[source]¶ Set numPolarizationType with the specified int value. numPolarizationType The int value to which numPolarizationType is to be set.
-
setNumSpectralWindow(numSpectralWindow)[source]¶ Set numSpectralWindow with the specified int value. numSpectralWindow The int value to which numSpectralWindow is to be set.
-
setOneAntennaId(index, antennaId)[source]¶ Set antennaId[index] with the specified Tag value. index The index in antennaId where to set the Tag value. antennaId The Tag value to which antennaId[index] is to be set.
-
setOnePairedAntennaId(index, pairedAntennaId)[source]¶ Set pairedAntennaId[index] with the specified Tag value. index The index in pairedAntennaId where to set the Tag value. pairedAntennaId The Tag value to which pairedAntennaId[index] is to be set. Raises an exception if that value does not already exist in this row
-
setOneSpectralWindowId(index, spectralWindowId)[source]¶ Set spectralWindowId[index] with the specified Tag value. index The index in spectralWindowId where to set the Tag value. spectralWindowId The Tag value to which spectralWindowId[index] is to be set. Raises an exception if that value does not already exist in this row
-
setPairedAntennaId(pairedAntennaId)[source]¶ Set pairedAntennaId with the specified Tag [] value. pairedAntennaId The Tag [] value to which pairedAntennaId is to be set. The value of pairedAntennaId can be anything allowed by the Tag [] constructor.
-
setPolarizationType(polarizationType)[source]¶ Set polarizationType with the specified PolarizationType [] value. polarizationType The PolarizationType [] value to which polarizationType is to be set.
-
setReason(reason)[source]¶ Set reason with the specified str value. reason The str value to which reason is to be set.
-
setSpectralWindowId(spectralWindowId)[source]¶ Set spectralWindowId with the specified Tag [] value. spectralWindowId The Tag [] value to which spectralWindowId is to be set. The value of spectralWindowId can be anything allowed by the Tag [] constructor.
-
setStartTime(startTime)[source]¶ Set startTime with the specified ArrayTime value. startTime The ArrayTime value to which startTime is to be set. The value of startTime can be anything allowed by the ArrayTime constructor.
-
static
spectralWindowIdFromBin(row, eis)[source]¶ Set the optional spectralWindowId in row from the EndianInput (eis) instance.
-