PolarizationRow¶
-
class
PolarizationRow(table, row=None)[source]¶ Bases:
objectThe PolarizationRow class is a row of a PolarizationTable.
Generated from model’s revision -1, branch
Methods Summary
compareNoAutoInc(numCorr, corrType, corrProduct)Compare each attribute except the autoincrementable one of this PolarizationRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(numCorr, corrType, …)corrProductFromBin(row, eis)Set the corrProduct in row from the EndianInput (eis) instance.
corrTypeFromBin(row, eis)Set the corrType 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.
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.
getCorrProduct()Get corrProduct.
getCorrType()Get corrType.
getNumCorr()Get numCorr.
getPolarizationId()Get polarizationId.
getTable()Return the table to which this row belongs.
initFromBinMethods()isAdded()numCorrFromBin(row, eis)Set the numCorr in row from the EndianInput (eis) instance.
polarizationIdFromBin(row, eis)Set the polarizationId in row from the EndianInput (eis) instance.
setCorrProduct(corrProduct)Set corrProduct with the specified PolarizationType [] [] value.
setCorrType(corrType)Set corrType with the specified StokesParameter [] value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setNumCorr(numCorr)Set numCorr with the specified int value.
setPolarizationId(polarizationId)Set polarizationId with the specified Tag value.
toBin(eos)Write this row out to the EndianOutput instance, eos.
toXML()Return this row in the form of an XML string.
Methods Documentation
-
compareNoAutoInc(numCorr, corrType, corrProduct)[source]¶ Compare each attribute except the autoincrementable one of this PolarizationRow with the corresponding parameters and return True if there is a match and False otherwise.
-
static
corrProductFromBin(row, eis)[source]¶ Set the corrProduct in row from the EndianInput (eis) instance.
-
static
corrTypeFromBin(row, eis)[source]¶ Set the corrType 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.
-
static
numCorrFromBin(row, eis)[source]¶ Set the numCorr in row from the EndianInput (eis) instance.
-
static
polarizationIdFromBin(row, eis)[source]¶ Set the polarizationId in row from the EndianInput (eis) instance.
-
setCorrProduct(corrProduct)[source]¶ Set corrProduct with the specified PolarizationType [] [] value. corrProduct The PolarizationType [] [] value to which corrProduct is to be set.
-
setCorrType(corrType)[source]¶ Set corrType with the specified StokesParameter [] value. corrType The StokesParameter [] value to which corrType 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.
-
setNumCorr(numCorr)[source]¶ Set numCorr with the specified int value. numCorr The int value to which numCorr is to be set.
-
setPolarizationId(polarizationId)[source]¶ Set polarizationId with the specified Tag value. polarizationId The Tag value to which polarizationId is to be set. The value of polarizationId 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.
-