GainTrackingRow¶
-
class
GainTrackingRow(table, row=None)[source]¶ Bases:
objectThe GainTrackingRow class is a row of a GainTrackingTable.
Generated from model’s revision -1, branch
Methods Summary
antennaIdFromBin(row, eis)Set the antennaId in row from the EndianInput (eis) instance.
attFreqFromBin(row, eis)Set the optional attFreq in row from the EndianInput (eis) instance.
attSpectrumFromBin(row, eis)Set the optional attSpectrum in row from the EndianInput (eis) instance.
attenuatorFromBin(row, eis)Set the attenuator in row from the EndianInput (eis) instance.
clearAttFreq()Mark attFreq, which is an optional field, as non-existent.
clearAttSpectrum()Mark attSpectrum, which is an optional field, as non-existent.
clearNumAttFreq()Mark numAttFreq, which is an optional field, as non-existent.
clearSamplingLevel()Mark samplingLevel, which is an optional field, as non-existent.
compareNoAutoInc(antennaId, …)Compare each attribute except the autoincrementable one of this GainTrackingRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(numReceptor, …)equalByRequiredValue(otherRow)Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.
feedIdFromBin(row, eis)Set the feedId 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()Returns the row in the Antenna table having Antenna.antennaId == antennaId
getAttFreq()Get attFreq, which is optional.
getAttSpectrum()Get attSpectrum, which is optional.
getAttenuator()Get attenuator.
getFeedId()Get feedId.
getFeeds()Get the collection of rows in the Feed table having feedId == this.feedId
getNumAttFreq()Get numAttFreq, which is optional.
getNumReceptor()Get numReceptor.
getPolarizationType()Get polarizationType.
getSamplingLevel()Get samplingLevel, which is optional.
getSpectralWindowId()Get spectralWindowId.
getSpectralWindowUsingSpectralWindowId()Returns the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId
getTable()Return the table to which this row belongs.
getTimeInterval()Get timeInterval.
initFromBinMethods()isAdded()isAttFreqExists()The attribute attFreq is optional.
isAttSpectrumExists()The attribute attSpectrum is optional.
isNumAttFreqExists()The attribute numAttFreq is optional.
isSamplingLevelExists()The attribute samplingLevel is optional.
numAttFreqFromBin(row, eis)Set the optional numAttFreq in row from the EndianInput (eis) instance.
numReceptorFromBin(row, eis)Set the numReceptor in row from the EndianInput (eis) instance.
polarizationTypeFromBin(row, eis)Set the polarizationType in row from the EndianInput (eis) instance.
samplingLevelFromBin(row, eis)Set the optional samplingLevel in row from the EndianInput (eis) instance.
setAntennaId(antennaId)Set antennaId with the specified Tag value.
setAttFreq(attFreq)Set attFreq with the specified float [] value.
setAttSpectrum(attSpectrum)Set attSpectrum with the specified Complex [] value.
setAttenuator(attenuator)Set attenuator with the specified float [] value.
setFeedId(feedId)Set feedId with the specified int value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setNumAttFreq(numAttFreq)Set numAttFreq with the specified int value.
setNumReceptor(numReceptor)Set numReceptor with the specified int value.
setPolarizationType(polarizationType)Set polarizationType with the specified PolarizationType [] value.
setSamplingLevel(samplingLevel)Set samplingLevel with the specified float value.
setSpectralWindowId(spectralWindowId)Set spectralWindowId with the specified Tag value.
setTimeInterval(timeInterval)Set timeInterval with the specified ArrayTimeInterval value.
spectralWindowIdFromBin(row, eis)Set the spectralWindowId in row from the EndianInput (eis) instance.
timeIntervalFromBin(row, eis)Set the timeInterval 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
antennaIdFromBin(row, eis)[source]¶ Set the antennaId in row from the EndianInput (eis) instance.
-
static
attFreqFromBin(row, eis)[source]¶ Set the optional attFreq in row from the EndianInput (eis) instance.
-
static
attSpectrumFromBin(row, eis)[source]¶ Set the optional attSpectrum in row from the EndianInput (eis) instance.
-
static
attenuatorFromBin(row, eis)[source]¶ Set the attenuator in row from the EndianInput (eis) instance.
-
compareNoAutoInc(antennaId, spectralWindowId, timeInterval, feedId, numReceptor, attenuator, polarizationType)[source]¶ Compare each attribute except the autoincrementable one of this GainTrackingRow with the corresponding parameters and return True if there is a match and False otherwise.
-
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()[source]¶ Returns the row in the Antenna table having Antenna.antennaId == antennaId
-
getAttFreq()[source]¶ Get attFreq, which is optional. return attFreq as float [] raises ValueError If attFreq does not exist.
-
getAttSpectrum()[source]¶ Get attSpectrum, which is optional. return attSpectrum as Complex [] raises ValueError If attSpectrum does not exist.
-
getNumAttFreq()[source]¶ Get numAttFreq, which is optional. return numAttFreq as int raises ValueError If numAttFreq does not exist.
-
getSamplingLevel()[source]¶ Get samplingLevel, which is optional. return samplingLevel as float raises ValueError If samplingLevel does not exist.
-
getSpectralWindowUsingSpectralWindowId()[source]¶ Returns the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId
-
isAttFreqExists()[source]¶ The attribute attFreq is optional. Return True if this attribute exists. return True if and only if the attFreq attribute exists.
-
isAttSpectrumExists()[source]¶ The attribute attSpectrum is optional. Return True if this attribute exists. return True if and only if the attSpectrum attribute exists.
-
isNumAttFreqExists()[source]¶ The attribute numAttFreq is optional. Return True if this attribute exists. return True if and only if the numAttFreq attribute exists.
-
isSamplingLevelExists()[source]¶ The attribute samplingLevel is optional. Return True if this attribute exists. return True if and only if the samplingLevel attribute exists.
-
static
numAttFreqFromBin(row, eis)[source]¶ Set the optional numAttFreq in row from the EndianInput (eis) instance.
-
static
numReceptorFromBin(row, eis)[source]¶ Set the numReceptor in row from the EndianInput (eis) instance.
-
static
polarizationTypeFromBin(row, eis)[source]¶ Set the polarizationType in row from the EndianInput (eis) instance.
-
static
samplingLevelFromBin(row, eis)[source]¶ Set the optional samplingLevel 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.
Raises a ValueError If an attempt is made to change a part of the key after is has been added to the table.
-
setAttFreq(attFreq)[source]¶ Set attFreq with the specified float [] value. attFreq The float [] value to which attFreq is to be set.
-
setAttSpectrum(attSpectrum)[source]¶ Set attSpectrum with the specified Complex [] value. attSpectrum The Complex [] value to which attSpectrum is to be set. The value of attSpectrum can be anything allowed by the Complex [] constructor.
-
setAttenuator(attenuator)[source]¶ Set attenuator with the specified float [] value. attenuator The float [] value to which attenuator is to be set.
-
setFeedId(feedId)[source]¶ Set feedId with the specified int value. feedId The int value to which feedId is to be set.
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.
-
setNumAttFreq(numAttFreq)[source]¶ Set numAttFreq with the specified int value. numAttFreq The int value to which numAttFreq is to be set.
-
setNumReceptor(numReceptor)[source]¶ Set numReceptor with the specified int value. numReceptor The int value to which numReceptor is to be set.
-
setPolarizationType(polarizationType)[source]¶ Set polarizationType with the specified PolarizationType [] value. polarizationType The PolarizationType [] value to which polarizationType is to be set.
-
setSamplingLevel(samplingLevel)[source]¶ Set samplingLevel with the specified float value. samplingLevel The float value to which samplingLevel 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.
Raises a ValueError If an attempt is made to change a part of the key after is has been added to the table.
-
setTimeInterval(timeInterval)[source]¶ Set timeInterval with the specified ArrayTimeInterval value. timeInterval The ArrayTimeInterval value to which timeInterval is to be set. The value of timeInterval can be anything allowed by the ArrayTimeInterval constructor.
Raises a ValueError If an attempt is made to change a part of the key after is has been added to the table.
-
static
spectralWindowIdFromBin(row, eis)[source]¶ Set the spectralWindowId in row from the EndianInput (eis) instance.
-
static