Пример #1
0
	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_)
Пример #2
0
	def exportChildren(self, outfile, level, name_='XSDataXDSDetector'):
		XSData.exportChildren(self, outfile, level, name_)
		if self.__detector_name is not None:
			self.detector_name.export(outfile, level, name_='detector_name')
		else:
			warnEmptyAttribute("detector_name", "XSDataString")
		if self.__image_format is not None:
			self.image_format.export(outfile, level, name_='image_format')
		else:
			warnEmptyAttribute("image_format", "XSDataString")
		if self.__nx is not None:
			self.nx.export(outfile, level, name_='nx')
		else:
			warnEmptyAttribute("nx", "XSDataInteger")
		if self.__ny is not None:
			self.ny.export(outfile, level, name_='ny')
		else:
			warnEmptyAttribute("ny", "XSDataInteger")
		if self.__qx is not None:
			self.qx.export(outfile, level, name_='qx')
		else:
			warnEmptyAttribute("qx", "XSDataDouble")
		if self.__qy is not None:
			self.qy.export(outfile, level, name_='qy')
		else:
			warnEmptyAttribute("qy", "XSDataDouble")
Пример #3
0
	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_)
Пример #4
0
	def __init__(self, graph=None, ytitle=None, xtitle=None, keypos=None, ymax=None, xmax=None, ymin=None, xmin=None, ysize=None, xsize=None, subTitle=None, title=None, plotType=None):
		XSData.__init__(self, )
		checkType("XSDataPlot", "Constructor of XSDataPlot", plotType, "string")
		self.__plotType = plotType
		checkType("XSDataPlot", "Constructor of XSDataPlot", title, "string")
		self.__title = title
		checkType("XSDataPlot", "Constructor of XSDataPlot", subTitle, "string")
		self.__subTitle = subTitle
		checkType("XSDataPlot", "Constructor of XSDataPlot", xsize, "double")
		self.__xsize = xsize
		checkType("XSDataPlot", "Constructor of XSDataPlot", ysize, "double")
		self.__ysize = ysize
		checkType("XSDataPlot", "Constructor of XSDataPlot", xmin, "double")
		self.__xmin = xmin
		checkType("XSDataPlot", "Constructor of XSDataPlot", ymin, "double")
		self.__ymin = ymin
		checkType("XSDataPlot", "Constructor of XSDataPlot", xmax, "double")
		self.__xmax = xmax
		checkType("XSDataPlot", "Constructor of XSDataPlot", ymax, "double")
		self.__ymax = ymax
		checkType("XSDataPlot", "Constructor of XSDataPlot", keypos, "string")
		self.__keypos = keypos
		checkType("XSDataPlot", "Constructor of XSDataPlot", xtitle, "string")
		self.__xtitle = xtitle
		checkType("XSDataPlot", "Constructor of XSDataPlot", ytitle, "string")
		self.__ytitle = ytitle
		if graph is None:
			self.__graph = []
		else:
			checkType("XSDataPlot", "Constructor of XSDataPlot", graph, "list")
			self.__graph = graph
Пример #5
0
 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_)
Пример #6
0
 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_)
Пример #7
0
    def __init__(self,
                 signal=None,
                 data=None,
                 axis=None,
                 long_name=None,
                 title=None):
        XSData.__init__(self, )

        checkType("XSDataNexusArrayGroup",
                  "Constructor of XSDataNexusArrayGroup", title,
                  "XSDataString")
        self._title = title
        checkType("XSDataNexusArrayGroup",
                  "Constructor of XSDataNexusArrayGroup", long_name,
                  "XSDataString")
        self._long_name = long_name
        if axis is None:
            self._axis = []
        else:
            checkType("XSDataNexusArrayGroup",
                      "Constructor of XSDataNexusArrayGroup", axis, "list")
            self._axis = axis
        checkType("XSDataNexusArrayGroup",
                  "Constructor of XSDataNexusArrayGroup", data, "XSDataArray")
        self._data = data
        checkType("XSDataNexusArrayGroup",
                  "Constructor of XSDataNexusArrayGroup", signal,
                  "XSDataInteger")
        self._signal = signal
Пример #8
0
 def exportChildren(self, outfile, level, name_='XSDataNexusAxis'):
     XSData.exportChildren(self, outfile, level, name_)
     if self._title is not None:
         self.title.export(outfile, level, name_='title')
     else:
         warnEmptyAttribute("title", "XSDataString")
     if self._axis is not None:
         self.axis.export(outfile, level, name_='axis')
     else:
         warnEmptyAttribute("axis", "XSDataInteger")
     if self._primary is not None:
         self.primary.export(outfile, level, name_='primary')
     else:
         warnEmptyAttribute("primary", "XSDataInteger")
     if self._units is not None:
         self.units.export(outfile, level, name_='units')
     else:
         warnEmptyAttribute("units", "XSDataString")
     if self._long_name is not None:
         self.long_name.export(outfile, level, name_='long_name')
     else:
         warnEmptyAttribute("long_name", "XSDataString")
     if self._axisData is not None:
         self.axisData.export(outfile, level, name_='axisData')
     else:
         warnEmptyAttribute("axisData", "XSDataArray")
Пример #9
0
    def __init__(self,
                 axisData=None,
                 long_name=None,
                 units=None,
                 primary=None,
                 axis=None,
                 title=None):
        XSData.__init__(self, )

        checkType("XSDataNexusAxis", "Constructor of XSDataNexusAxis", title,
                  "XSDataString")
        self._title = title
        checkType("XSDataNexusAxis", "Constructor of XSDataNexusAxis", axis,
                  "XSDataInteger")
        self._axis = axis
        checkType("XSDataNexusAxis", "Constructor of XSDataNexusAxis", primary,
                  "XSDataInteger")
        self._primary = primary
        checkType("XSDataNexusAxis", "Constructor of XSDataNexusAxis", units,
                  "XSDataString")
        self._units = units
        checkType("XSDataNexusAxis", "Constructor of XSDataNexusAxis",
                  long_name, "XSDataString")
        self._long_name = long_name
        checkType("XSDataNexusAxis", "Constructor of XSDataNexusAxis",
                  axisData, "XSDataArray")
        self._axisData = axisData
Пример #10
0
 def exportChildren(self,
                    outfile,
                    level,
                    name_='XSDataGridScreeningResultIntegration'):
     XSData.exportChildren(self, outfile, level, name_)
     if self._fileName is not None:
         showIndent(outfile, level)
         outfile.write(unicode('<fileName>%s</fileName>\n' %
                               self._fileName))
     else:
         warnEmptyAttribute("fileName", "string")
     if self._fileDirectory is not None:
         showIndent(outfile, level)
         outfile.write(
             unicode('<fileDirectory>%s</fileDirectory>\n' %
                     self._fileDirectory))
     else:
         warnEmptyAttribute("fileDirectory", "string")
     if self._integratedData is not None:
         showIndent(outfile, level)
         outfile.write(
             unicode('<integratedData>%s</integratedData>\n' %
                     self._integratedData))
     else:
         warnEmptyAttribute("integratedData", "string")
Пример #11
0
 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_)
Пример #12
0
	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_)
Пример #13
0
 def exportChildren(self, outfile, level, name_='XSDataXOalignCell'):
     XSData.exportChildren(self, outfile, level, name_)
     if self._angle_alpha is not None:
         self.angle_alpha.export(outfile, level, name_='angle_alpha')
     else:
         warnEmptyAttribute("angle_alpha", "XSDataAngle")
     if self._angle_beta is not None:
         self.angle_beta.export(outfile, level, name_='angle_beta')
     else:
         warnEmptyAttribute("angle_beta", "XSDataAngle")
     if self._angle_gamma is not None:
         self.angle_gamma.export(outfile, level, name_='angle_gamma')
     else:
         warnEmptyAttribute("angle_gamma", "XSDataAngle")
     if self._length_a is not None:
         self.length_a.export(outfile, level, name_='length_a')
     else:
         warnEmptyAttribute("length_a", "XSDataLength")
     if self._length_b is not None:
         self.length_b.export(outfile, level, name_='length_b')
     else:
         warnEmptyAttribute("length_b", "XSDataLength")
     if self._length_c is not None:
         self.length_c.export(outfile, level, name_='length_c')
     else:
         warnEmptyAttribute("length_c", "XSDataLength")
Пример #14
0
	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_)
Пример #15
0
 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_)
Пример #16
0
	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_)
Пример #17
0
	def __init__(self, plot=None):
		XSData.__init__(self, )
		if plot is None:
			self.__plot = []
		else:
			checkType("XSDataPlotSet", "Constructor of XSDataPlotSet", plot, "list")
			self.__plot = plot
Пример #18
0
	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_)
Пример #19
0
 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_)
Пример #20
0
 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_)
Пример #21
0
 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_)
Пример #22
0
	def __init__(self, atom=None):
		XSData.__init__(self, )
		if atom is None:
			self.__atom = []
		else:
			checkType("XSDataAtomicComposition", "Constructor of XSDataAtomicComposition", atom, "list")
			self.__atom = atom
Пример #23
0
 def exportChildren(self, outfile, level, name_='XSDataXOalignCell'):
     XSData.exportChildren(self, outfile, level, name_)
     if self._angle_alpha is not None:
         self.angle_alpha.export(outfile, level, name_='angle_alpha')
     else:
         warnEmptyAttribute("angle_alpha", "XSDataAngle")
     if self._angle_beta is not None:
         self.angle_beta.export(outfile, level, name_='angle_beta')
     else:
         warnEmptyAttribute("angle_beta", "XSDataAngle")
     if self._angle_gamma is not None:
         self.angle_gamma.export(outfile, level, name_='angle_gamma')
     else:
         warnEmptyAttribute("angle_gamma", "XSDataAngle")
     if self._length_a is not None:
         self.length_a.export(outfile, level, name_='length_a')
     else:
         warnEmptyAttribute("length_a", "XSDataLength")
     if self._length_b is not None:
         self.length_b.export(outfile, level, name_='length_b')
     else:
         warnEmptyAttribute("length_b", "XSDataLength")
     if self._length_c is not None:
         self.length_c.export(outfile, level, name_='length_c')
     else:
         warnEmptyAttribute("length_c", "XSDataLength")
Пример #24
0
	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_)
Пример #25
0
	def exportChildren(self, outfile, level, name_='XSDataNexusAxis'):
		XSData.exportChildren(self, outfile, level, name_)
		if self._title is not None:
			self.title.export(outfile, level, name_='title')
		else:
			warnEmptyAttribute("title", "XSDataString")
		if self._axis is not None:
			self.axis.export(outfile, level, name_='axis')
		else:
			warnEmptyAttribute("axis", "XSDataInteger")
		if self._primary is not None:
			self.primary.export(outfile, level, name_='primary')
		else:
			warnEmptyAttribute("primary", "XSDataInteger")
		if self._units is not None:
			self.units.export(outfile, level, name_='units')
		else:
			warnEmptyAttribute("units", "XSDataString")
		if self._long_name is not None:
			self.long_name.export(outfile, level, name_='long_name')
		else:
			warnEmptyAttribute("long_name", "XSDataString")
		if self._axisData is not None:
			self.axisData.export(outfile, level, name_='axisData')
		else:
			warnEmptyAttribute("axisData", "XSDataArray")
Пример #26
0
	def __init__(self, symbol=None, numberOf=None, concentration=None):
		XSData.__init__(self, )
		checkType("XSDataAtom", "Constructor of XSDataAtom", concentration, "XSDataDouble")
		self.__concentration = concentration
		checkType("XSDataAtom", "Constructor of XSDataAtom", numberOf, "XSDataDouble")
		self.__numberOf = numberOf
		checkType("XSDataAtom", "Constructor of XSDataAtom", symbol, "XSDataString")
		self.__symbol = symbol
	def exportChildren(self, outfile, level, name_='XSDataQuery'):
		XSData.exportChildren(self, outfile, level, name_)
		for item_ in self.getItem():
			item_.export(outfile, level, name_='item')
		if self.getItem() == []:
			warnEmptyAttribute("item", "XSDataString")
		if self.__removeItems is not None:
			self.removeItems.export(outfile, level, name_='removeItems')
Пример #28
0
 def exportChildren(self, outfile, level, name_='XSDataQuery'):
     XSData.exportChildren(self, outfile, level, name_)
     for item_ in self.getItem():
         item_.export(outfile, level, name_='item')
     if self.getItem() == []:
         warnEmptyAttribute("item", "XSDataString")
     if self.__removeItems is not None:
         self.removeItems.export(outfile, level, name_='removeItems')
	def __init__(self, removeItems=None, item=None):
		XSData.__init__(self, )
		if item is None:
			self.__item = []
		else:
			checkType("XSDataQuery", "Constructor of XSDataQuery", item, "list")
			self.__item = item
		checkType("XSDataQuery", "Constructor of XSDataQuery", removeItems, "XSDataBoolean")
		self.__removeItems = removeItems
Пример #30
0
 def exportChildren(self, outfile, level, name_='XSDataXOalignOrientation'):
     XSData.exportChildren(self, outfile, level, name_)
     if self._matrixA is not None:
         self.matrixA.export(outfile, level, name_='matrixA')
     else:
         warnEmptyAttribute("matrixA", "XSDataMatrixDouble")
     if self._matrixU is not None:
         self.matrixU.export(outfile, level, name_='matrixU')
     else:
         warnEmptyAttribute("matrixU", "XSDataMatrixDouble")
Пример #31
0
 def exportChildren(self, outfile, level, name_='XSDataXOalignOrientation'):
     XSData.exportChildren(self, outfile, level, name_)
     if self._matrixA is not None:
         self.matrixA.export(outfile, level, name_='matrixA')
     else:
         warnEmptyAttribute("matrixA", "XSDataMatrixDouble")
     if self._matrixU is not None:
         self.matrixU.export(outfile, level, name_='matrixU')
     else:
         warnEmptyAttribute("matrixU", "XSDataMatrixDouble")
	def __init__(self, integratedData=None, fileDirectory=None, fileName=None):
		XSData.__init__(self, )
	
	
		checkType("XSDataGridScreeningResultIntegration", "Constructor of XSDataGridScreeningResultIntegration", fileName, "string")
		self._fileName = fileName
		checkType("XSDataGridScreeningResultIntegration", "Constructor of XSDataGridScreeningResultIntegration", fileDirectory, "string")
		self._fileDirectory = fileDirectory
		checkType("XSDataGridScreeningResultIntegration", "Constructor of XSDataGridScreeningResultIntegration", integratedData, "string")
		self._integratedData = integratedData
Пример #33
0
	def __init__(self, XSDataXDSRange=None, name_template_of_data_frames=None, data_range=None, background_range=None):
		XSData.__init__(self, )
		checkType("XSDataXDSSubWedge", "Constructor of XSDataXDSSubWedge", background_range, "XSDataXDSRange")
		self.__background_range = background_range
		checkType("XSDataXDSSubWedge", "Constructor of XSDataXDSSubWedge", data_range, "XSDataXDSRange")
		self.__data_range = data_range
		checkType("XSDataXDSSubWedge", "Constructor of XSDataXDSSubWedge", name_template_of_data_frames, "XSDataString")
		self.__name_template_of_data_frames = name_template_of_data_frames
		checkType("XSDataXDSSubWedge", "Constructor of XSDataXDSSubWedge", XSDataXDSRange, "XSDataXDSRange")
		self.__XSDataXDSRange = XSDataXDSRange
Пример #34
0
	def __init__(self, IoverSigma=None, centroidY=None, centroidX=None, centroidFrame=None):
		XSData.__init__(self, )
		checkType("XSDataXDSSpot", "Constructor of XSDataXDSSpot", centroidFrame, "XSDataDouble")
		self.__centroidFrame = centroidFrame
		checkType("XSDataXDSSpot", "Constructor of XSDataXDSSpot", centroidX, "XSDataDouble")
		self.__centroidX = centroidX
		checkType("XSDataXDSSpot", "Constructor of XSDataXDSSpot", centroidY, "XSDataDouble")
		self.__centroidY = centroidY
		checkType("XSDataXDSSpot", "Constructor of XSDataXDSSpot", IoverSigma, "XSDataDouble")
		self.__IoverSigma = IoverSigma
Пример #35
0
	def exportChildren(self, outfile, level, name_='XSDataLabelitMosflmScriptsOutput'):
		XSData.exportChildren(self, outfile, level, name_)
		if self.__aMatrix is not None:
			self.aMatrix.export(outfile, level, name_='aMatrix')
		else:
			warnEmptyAttribute("aMatrix", "XSDataMatrixDouble")
		if self.__uMatrix is not None:
			self.uMatrix.export(outfile, level, name_='uMatrix')
		else:
			warnEmptyAttribute("uMatrix", "XSDataMatrixDouble")
Пример #36
0
	def exportChildren(self, outfile, level, name_='XSDataXDSRange'):
		XSData.exportChildren(self, outfile, level, name_)
		if self.__lower is not None:
			self.lower.export(outfile, level, name_='lower')
		else:
			warnEmptyAttribute("lower", "XSDataInteger")
		if self.__upper is not None:
			self.upper.export(outfile, level, name_='upper')
		else:
			warnEmptyAttribute("upper", "XSDataInteger")
Пример #37
0
 def __init__(self, removeItems=None, item=None):
     XSData.__init__(self, )
     if item is None:
         self.__item = []
     else:
         checkType("XSDataQuery", "Constructor of XSDataQuery", item,
                   "list")
         self.__item = item
     checkType("XSDataQuery", "Constructor of XSDataQuery", removeItems,
               "XSDataBoolean")
     self.__removeItems = removeItems
Пример #38
0
 def __init__(self, rMaxAbsTol=None, rMaxIntervals=None, rMaxStop=None, rMaxStart=None):
     XSData.__init__(self, )
 
 
     checkType("XSDataSolutionScatteringSettings", "Constructor of XSDataSolutionScatteringSettings", rMaxStart, "XSDataDouble")
     self._rMaxStart = rMaxStart
     checkType("XSDataSolutionScatteringSettings", "Constructor of XSDataSolutionScatteringSettings", rMaxStop, "XSDataDouble")
     self._rMaxStop = rMaxStop
     checkType("XSDataSolutionScatteringSettings", "Constructor of XSDataSolutionScatteringSettings", rMaxIntervals, "XSDataInteger")
     self._rMaxIntervals = rMaxIntervals
     checkType("XSDataSolutionScatteringSettings", "Constructor of XSDataSolutionScatteringSettings", rMaxAbsTol, "XSDataDouble")
     self._rMaxAbsTol = rMaxAbsTol
Пример #39
0
	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_)
Пример #40
0
 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_ == '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_)
Пример #42
0
 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_)
Пример #43
0
 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 __init__(self, scanId2=None, scanId1=None, motorPosition2=None, motorPosition1=None):
		XSData.__init__(self, )
	
	
		checkType("XSDataGridScreeningFileNameParameters", "Constructor of XSDataGridScreeningFileNameParameters", motorPosition1, "XSDataString")
		self._motorPosition1 = motorPosition1
		checkType("XSDataGridScreeningFileNameParameters", "Constructor of XSDataGridScreeningFileNameParameters", motorPosition2, "XSDataString")
		self._motorPosition2 = motorPosition2
		checkType("XSDataGridScreeningFileNameParameters", "Constructor of XSDataGridScreeningFileNameParameters", scanId1, "XSDataString")
		self._scanId1 = scanId1
		checkType("XSDataGridScreeningFileNameParameters", "Constructor of XSDataGridScreeningFileNameParameters", scanId2, "XSDataString")
		self._scanId2 = scanId2
Пример #45
0
	def exportChildren(self, outfile, level, name_='XSDataPlot'):
		XSData.exportChildren(self, outfile, level, name_)
		if self.__plotType is not None:
			showIndent(outfile, level)
			outfile.write(unicode('<plotType>%s</plotType>\n' % self.__plotType))
		else:
			warnEmptyAttribute("plotType", "string")
		if self.__title is not None:
			showIndent(outfile, level)
			outfile.write(unicode('<title>%s</title>\n' % self.__title))
		else:
			warnEmptyAttribute("title", "string")
		if self.__subTitle is not None:
			showIndent(outfile, level)
			outfile.write(unicode('<subTitle>%s</subTitle>\n' % self.__subTitle))
		else:
			warnEmptyAttribute("subTitle", "string")
		if self.__xsize is not None:
			showIndent(outfile, level)
			outfile.write(unicode('<xsize>%e</xsize>\n' % self.__xsize))
		if self.__ysize is not None:
			showIndent(outfile, level)
			outfile.write(unicode('<ysize>%e</ysize>\n' % self.__ysize))
		if self.__xmin is not None:
			showIndent(outfile, level)
			outfile.write(unicode('<xmin>%e</xmin>\n' % self.__xmin))
		if self.__ymin is not None:
			showIndent(outfile, level)
			outfile.write(unicode('<ymin>%e</ymin>\n' % self.__ymin))
		if self.__xmax is not None:
			showIndent(outfile, level)
			outfile.write(unicode('<xmax>%e</xmax>\n' % self.__xmax))
		if self.__ymax is not None:
			showIndent(outfile, level)
			outfile.write(unicode('<ymax>%e</ymax>\n' % self.__ymax))
		if self.__keypos is not None:
			showIndent(outfile, level)
			outfile.write(unicode('<keypos>%s</keypos>\n' % self.__keypos))
		if self.__xtitle is not None:
			showIndent(outfile, level)
			outfile.write(unicode('<xtitle>%s</xtitle>\n' % self.__xtitle))
		else:
			warnEmptyAttribute("xtitle", "string")
		if self.__ytitle is not None:
			showIndent(outfile, level)
			outfile.write(unicode('<ytitle>%s</ytitle>\n' % self.__ytitle))
		else:
			warnEmptyAttribute("ytitle", "string")
		for graph_ in self.getGraph():
			graph_.export(outfile, level, name_='graph')
		if self.getGraph() == []:
			warnEmptyAttribute("graph", "XSDataGraph")