SeeingRow

class SeeingRow(table, row=None)[source]

Bases: object

The SeeingRow class is a row of a SeeingTable.

Generated from model’s revision -1, branch

Methods Summary

baseLengthFromBin(row, eis)

Set the baseLength in row from the EndianInput (eis) instance.

compareNoAutoInc(timeInterval, …)

Compare each attribute except the autoincrementable one of this SeeingRow with the corresponding parameters and return True if there is a match and False otherwise.

compareRequiredValue(numBaseLength, …)

equalByRequiredValue(otherRow)

Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.

exponentFromBin(row, eis)

Set the exponent 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.

getBaseLength()

Get baseLength.

getExponent()

Get exponent.

getNumBaseLength()

Get numBaseLength.

getPhaseRms()

Get phaseRms.

getSeeing()

Get seeing.

getTable()

Return the table to which this row belongs.

getTimeInterval()

Get timeInterval.

initFromBinMethods()

isAdded()

numBaseLengthFromBin(row, eis)

Set the numBaseLength in row from the EndianInput (eis) instance.

phaseRmsFromBin(row, eis)

Set the phaseRms in row from the EndianInput (eis) instance.

seeingFromBin(row, eis)

Set the seeing in row from the EndianInput (eis) instance.

setBaseLength(baseLength)

Set baseLength with the specified Length [] value.

setExponent(exponent)

Set exponent with the specified float value.

setFromXML(xmlrow)

Fill the values of this row from an XML string that was produced by the toXML() method.

setNumBaseLength(numBaseLength)

Set numBaseLength with the specified int value.

setPhaseRms(phaseRms)

Set phaseRms with the specified Angle [] value.

setSeeing(seeing)

Set seeing with the specified float value.

setTimeInterval(timeInterval)

Set timeInterval with the specified ArrayTimeInterval value.

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 baseLengthFromBin(row, eis)[source]

Set the baseLength in row from the EndianInput (eis) instance.

compareNoAutoInc(timeInterval, numBaseLength, baseLength, phaseRms, seeing, exponent)[source]

Compare each attribute except the autoincrementable one of this SeeingRow with the corresponding parameters and return True if there is a match and False otherwise.

compareRequiredValue(numBaseLength, baseLength, phaseRms, seeing, exponent)[source]
equalByRequiredValue(otherRow)[source]

Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.

static exponentFromBin(row, eis)[source]

Set the exponent 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.

getBaseLength()[source]

Get baseLength. return baseLength as Length []

getExponent()[source]

Get exponent. return exponent as float

getNumBaseLength()[source]

Get numBaseLength. return numBaseLength as int

getPhaseRms()[source]

Get phaseRms. return phaseRms as Angle []

getSeeing()[source]

Get seeing. return seeing as float

getTable()[source]

Return the table to which this row belongs.

getTimeInterval()[source]

Get timeInterval. return timeInterval as ArrayTimeInterval

static initFromBinMethods()[source]
isAdded()[source]
static numBaseLengthFromBin(row, eis)[source]

Set the numBaseLength in row from the EndianInput (eis) instance.

static phaseRmsFromBin(row, eis)[source]

Set the phaseRms in row from the EndianInput (eis) instance.

static seeingFromBin(row, eis)[source]

Set the seeing in row from the EndianInput (eis) instance.

setBaseLength(baseLength)[source]

Set baseLength with the specified Length [] value. baseLength The Length [] value to which baseLength is to be set. The value of baseLength can be anything allowed by the Length [] constructor.

setExponent(exponent)[source]

Set exponent with the specified float value. exponent The float value to which exponent 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.

setNumBaseLength(numBaseLength)[source]

Set numBaseLength with the specified int value. numBaseLength The int value to which numBaseLength is to be set.

setPhaseRms(phaseRms)[source]

Set phaseRms with the specified Angle [] value. phaseRms The Angle [] value to which phaseRms is to be set. The value of phaseRms can be anything allowed by the Angle [] constructor.

setSeeing(seeing)[source]

Set seeing with the specified float value. seeing The float value to which seeing is to be set.

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 timeIntervalFromBin(row, eis)[source]

Set the timeInterval in row from the EndianInput (eis) instance.

toBin(eos)[source]

Write this row out to the EndianOutput instance, eos.

toXML()[source]

Return this row in the form of an XML string.