def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'angle_alpha': obj_ = XSDataAngle() obj_.build(child_) self.setAngle_alpha(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'angle_beta': obj_ = XSDataAngle() obj_.build(child_) self.setAngle_beta(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'angle_gamma': obj_ = XSDataAngle() obj_.build(child_) self.setAngle_gamma(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'length_a': obj_ = XSDataLength() obj_.build(child_) self.setLength_a(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'length_b': obj_ = XSDataLength() obj_.build(child_) self.setLength_b(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'length_c': obj_ = XSDataLength() obj_.build(child_) self.setLength_c(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'title': obj_ = XSDataString() obj_.build(child_) self.setTitle(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'long_name': obj_ = XSDataString() obj_.build(child_) self.setLong_name(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'axis': obj_ = XSDataNexusAxis() obj_.build(child_) self.axis.append(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'data': obj_ = XSDataArray() obj_.build(child_) self.setData(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'signal': obj_ = XSDataInteger() obj_.build(child_) self.setSignal(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'atom': obj_ = XSDataAtom() obj_.build(child_) self.atom.append(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'b': obj_ = XSDataBoolean() obj_.build(child_) self.setB(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'idN': obj_ = XSDataString() obj_.build(child_) self.setIdN(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'dirN': obj_ = XSDataFile() obj_.build(child_) self.setDirN(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'templateN': obj_ = XSDataString() obj_.build(child_) self.setTemplateN(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'fromN': obj_ = XSDataInteger() obj_.build(child_) self.setFromN(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'toN': obj_ = XSDataInteger() obj_.build(child_) self.setToN(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'plot': obj_ = XSDataPlot() obj_.build(child_) self.plot.append(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'beamCentreX': obj_ = XSDataLength() obj_.build(child_) self.setBeamCentreX(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'beamCentreY': obj_ = XSDataLength() obj_.build(child_) self.setBeamCentreY(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'distance': obj_ = XSDataLength() obj_.build(child_) self.setDistance(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'mosaicity': obj_ = XSDataAngle() obj_.build(child_) self.setMosaicity(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'selectedSolutionNumber': obj_ = XSDataInteger() obj_.build(child_) self.setSelectedSolutionNumber(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'labelitScreenSolution': obj_ = XSDataLabelitScreenSolution() obj_.build(child_) self.labelitScreenSolution.append(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'title': obj_ = XSDataString() obj_.build(child_) self.setTitle(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'axis': obj_ = XSDataInteger() obj_.build(child_) self.setAxis(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'primary': obj_ = XSDataInteger() obj_.build(child_) self.setPrimary(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'units': obj_ = XSDataString() obj_.build(child_) self.setUnits(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'long_name': obj_ = XSDataString() obj_.build(child_) self.setLong_name(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'axisData': obj_ = XSDataArray() obj_.build(child_) self.setAxisData(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'detector_name': obj_ = XSDataString() obj_.build(child_) self.setDetector_name(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'image_format': obj_ = XSDataString() obj_.build(child_) self.setImage_format(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'nx': obj_ = XSDataInteger() obj_.build(child_) self.setNx(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'ny': obj_ = XSDataInteger() obj_.build(child_) self.setNy(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'qx': obj_ = XSDataDouble() obj_.build(child_) self.setQx(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'qy': obj_ = XSDataDouble() obj_.build(child_) self.setQy(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'item': obj_ = XSDataString() obj_.build(child_) self.item.append(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'removeItems': obj_ = XSDataBoolean() obj_.build(child_) self.setRemoveItems(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'lower': obj_ = XSDataInteger() obj_.build(child_) self.setLower(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'upper': obj_ = XSDataInteger() obj_.build(child_) self.setUpper(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'matrixA': obj_ = XSDataMatrixDouble() obj_.build(child_) self.setMatrixA(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'matrixU': obj_ = XSDataMatrixDouble() obj_.build(child_) self.setMatrixU(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'bravaisLattice': obj_ = XSDataString() obj_.build(child_) self.setBravaisLattice(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'crystalSystem': obj_ = XSDataString() obj_.build(child_) self.setCrystalSystem(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'happy': obj_ = XSDataBoolean() obj_.build(child_) self.setHappy(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'metricFitCode': obj_ = XSDataString() obj_.build(child_) self.setMetricFitCode(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'metricFitValue': obj_ = XSDataDouble() obj_.build(child_) self.setMetricFitValue(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'numberOfSpots': obj_ = XSDataInteger() obj_.build(child_) self.setNumberOfSpots(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'rmsd': obj_ = XSDataLength() obj_.build(child_) self.setRmsd(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'solutionNumber': obj_ = XSDataInteger() obj_.build(child_) self.setSolutionNumber(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'unitCell': obj_ = XSDataCell() obj_.build(child_) self.setUnitCell(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'volume': obj_ = XSDataInteger() obj_.build(child_) self.setVolume(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'lineStyle': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self.__lineStyle = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'lineWidth': if child_.firstChild: sval_ = child_.firstChild.nodeValue try: fval_ = float(sval_) except ValueError: raise ValueError('requires float (or double) -- %s' % child_.toxml()) self.__lineWidth = fval_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'lineColor': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self.__lineColor = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'label': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self.__label = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'markerType': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self.__markerType = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'markerColor': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self.__markerColor = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'data': obj_ = XSDataArray() obj_.build(child_) self.setData(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'concentration': obj_ = XSDataDouble() obj_.build(child_) self.setConcentration(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'numberOf': obj_ = XSDataDouble() obj_.build(child_) self.setNumberOf(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'symbol': obj_ = XSDataString() obj_.build(child_) self.setSymbol(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'kappa': obj_ = XSDataDouble() obj_.build(child_) self.setKappa(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'phi': obj_ = XSDataDouble() obj_.build(child_) self.setPhi(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'settings': obj_ = XSDataString() obj_.build(child_) self.setSettings(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'centroidFrame': obj_ = XSDataDouble() obj_.build(child_) self.setCentroidFrame(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'centroidX': obj_ = XSDataDouble() obj_.build(child_) self.setCentroidX(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'centroidY': obj_ = XSDataDouble() obj_.build(child_) self.setCentroidY(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'IoverSigma': obj_ = XSDataDouble() obj_.build(child_) self.setIoverSigma(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'motorPosition1': obj_ = XSDataString() obj_.build(child_) self.setMotorPosition1(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'motorPosition2': obj_ = XSDataString() obj_.build(child_) self.setMotorPosition2(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'scanId1': obj_ = XSDataString() obj_.build(child_) self.setScanId1(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'scanId2': obj_ = XSDataString() obj_.build(child_) self.setScanId2(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'rMaxStart': obj_ = XSDataDouble() obj_.build(child_) self.setRMaxStart(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'rMaxStop': obj_ = XSDataDouble() obj_.build(child_) self.setRMaxStop(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'rMaxIntervals': obj_ = XSDataInteger() obj_.build(child_) self.setRMaxIntervals(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'rMaxAbsTol': obj_ = XSDataDouble() obj_.build(child_) self.setRMaxAbsTol(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'background_range': obj_ = XSDataXDSRange() obj_.build(child_) self.setBackground_range(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'data_range': obj_ = XSDataXDSRange() obj_.build(child_) self.setData_range(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'name_template_of_data_frames': obj_ = XSDataString() obj_.build(child_) self.setName_template_of_data_frames(obj_) elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'XSDataXDSRange': obj_ = XSDataXDSRange() obj_.build(child_) self.setXSDataXDSRange(obj_) XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'fileName': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self._fileName = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'fileDirectory': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self._fileDirectory = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'integratedData': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self._integratedData = value_ XSData.buildChildren(self, child_, nodeName_)
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'plotType': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self.__plotType = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'title': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self.__title = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'subTitle': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self.__subTitle = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'xsize': if child_.firstChild: sval_ = child_.firstChild.nodeValue try: fval_ = float(sval_) except ValueError: raise ValueError('requires float (or double) -- %s' % child_.toxml()) self.__xsize = fval_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'ysize': if child_.firstChild: sval_ = child_.firstChild.nodeValue try: fval_ = float(sval_) except ValueError: raise ValueError('requires float (or double) -- %s' % child_.toxml()) self.__ysize = fval_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'xmin': if child_.firstChild: sval_ = child_.firstChild.nodeValue try: fval_ = float(sval_) except ValueError: raise ValueError('requires float (or double) -- %s' % child_.toxml()) self.__xmin = fval_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'ymin': if child_.firstChild: sval_ = child_.firstChild.nodeValue try: fval_ = float(sval_) except ValueError: raise ValueError('requires float (or double) -- %s' % child_.toxml()) self.__ymin = fval_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'xmax': if child_.firstChild: sval_ = child_.firstChild.nodeValue try: fval_ = float(sval_) except ValueError: raise ValueError('requires float (or double) -- %s' % child_.toxml()) self.__xmax = fval_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'ymax': if child_.firstChild: sval_ = child_.firstChild.nodeValue try: fval_ = float(sval_) except ValueError: raise ValueError('requires float (or double) -- %s' % child_.toxml()) self.__ymax = fval_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'keypos': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self.__keypos = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'xtitle': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self.__xtitle = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'ytitle': value_ = '' for text__content_ in child_.childNodes: if text__content_.nodeValue is not None: value_ += text__content_.nodeValue self.__ytitle = value_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'graph': obj_ = XSDataGraph() obj_.build(child_) self.graph.append(obj_) XSData.buildChildren(self, child_, nodeName_)