Hi
Sorry for my late response.
I tried the fixes in 3.2.1_2.2.1 and now it reads in and plots my 2D datapointsets
properly. Thanks a lot for the quick fix.
However I found two new issues:
(1) if I open an xml file with the dtd definition in the header, i.e. something
like
<!DOCTYPE aida SYSTEM "http://aida.freehep.org/schemas/3.0/aida.dtd" >
it crashes if you don't have a web connection. If you are online, everything
is fine. If you remove the line, everything is fine, too. I don't know whether
this behaviour is a feature or whether it's the fault of some xml module.
But it would be reasonable to ignore this line if no connection can be made.
See for the output further down.
(2) plotting an overlay of two different DataPointSets in the same region
doesn't work (options: scatter and with error bars). Plotting them separately
in different regions works fine. The error happens when calling region.plot()
for the second time. Here again, I have no idea what is going on so I also
append the output.
Thanks for help
Alex
output to (1)
Traceback (most recent call last):
File "sampleDPS1.py", line 7, in ?
tree = treeFactory.create("/home/alex/y2.xml","xml",True,False)
File "/usr/lib/python2.3/site-packages/paida/paida_core/ITreeFactory.py",
line 92, in create
return ITree(storeName, storeType, readOnly)
File "/usr/lib/python2.3/site-packages/paida/paida_gui/tkinter/ITree.py",
line 1901, in __init__
parser.parse(fileObj)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line
109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/xmlreader.py", line
123, in parse
self.feed(buffer)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line
216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line
395, in external_entity_ref
self._source.getSystemId() or
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/saxutils.py", line
515, in prepare_input_source
f = urllib2.urlopen(source.getSystemId())
File "/usr/lib/python2.3/urllib2.py", line 129, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.3/urllib2.py", line 326, in open
'_open', req)
File "/usr/lib/python2.3/urllib2.py", line 306, in _call_chain
result = func(*args)
File "/usr/lib/python2.3/urllib2.py", line 901, in http_open
return self.do_open(httplib.HTTP, req)
File "/usr/lib/python2.3/urllib2.py", line 886, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error (-3, 'Temporary failure in name resolution')>
output to (2)
Traceback (most recent call last):
File "sampleDPS1.py", line 42, in ?
region.plot(dps2)
File "/usr/lib/python2.3/site-packages/paida/paida_gui/tkinter/IPlotterRegion.py",
line 862, in plot
self._plot(data1, plotterStyle, options)
File "/usr/lib/python2.3/site-packages/paida/paida_gui/tkinter/IPlotterRegion.py",
line 896, in _plot
self._plotDataPointSet2D(data, plotterStyle, options)
File "/usr/lib/python2.3/site-packages/paida/paida_gui/tkinter/IPlotterRegion.py",
line 2029, in _plotDataPointSet2D
canvasX = convertX(lowerX, upperX, valueX)
UnboundLocalError: local variable 'convertX' referenced before assignment
Killed
|