Package xrt (XRayTracer) is a python software library for ray tracing and wave propagation in x-ray regime. It is primarily meant for modeling synchrotron sources, beamlines and beamline elements.
Hello,
Below is the trace when I run the example MontelMirror.py. After displaying several graphs, it exit suddenly with Typeerror message.
Thanks for help.
os.system('MontelMirror.py')
The last 8 runs
C:\Python\xrt-1.4.0\examples\withRaycing_QookBeamlines\t1.py::
start: Tue, 15 Feb 2022 10:03:31; stop: 10:03:34; duration: 2.6 s
C:\Python\xrt-1.4.0\examples\withRaycing_QookBeamlines\t1.py::
start: Tue, 15 Feb 2022 10:13:33; stop: 10:14:14; duration: 41.5 s
C:\Python\xrt-1.4.0\examples\withRaycing_QookBeamlines\t1.py::
start: Tue, 15 Feb 2022 15:00:24; stop: 15:00:26; duration: 2.4 s
C:\Python\xrt-1.4.0\examples\withRaycing_QookBeamlines\t1.py::
start: Thu, 17 Feb 2022 11:57:43; stop: 11:57:45; duration: 2.6 s
C:\Python\xrt-1.4.0\examples\withRaycing_QookBeamlines\t1.py::
start: Thu, 17 Feb 2022 17:41:51; stop: 17:41:54; duration: 2.5 s
C:\Python\xrt-1.4.0\examples\withRaycing_QookBeamlines\t1.py::
start: Thu, 17 Feb 2022 18:23:52; stop: 18:23:55; duration: 2.5 s
C:\Python\xrt-1.4.0\examples\withRaycing_QookBeamlines\t1.py::
start: Thu, 17 Feb 2022 18:45:19; stop: 18:45:43; duration: 24.2 s
C:\Python\xrt-1.4.0\examples\withRaycing_QookBeamlines\t1.py::
start: Thu, 17 Feb 2022 18:49:12; stop: 18:49:58; duration: 45.7 s
Traceback (most recent call last):
File "C:\Python\lib\site-packages\matplotlib\backend_bases.py", line 1198, in _on_timer
ret = func(*args, **kwargs)
File "C:\Python\lib\site-packages\xrt\plotter.py", line 1103, in timer_callback
runner.dispatch_jobs()
File "C:\Python\lib\site-packages\xrt\runner.py", line 192, in dispatch_jobs
plot.plot_plots()
File "C:\Python\lib\site-packages\xrt\plotter.py", line 1617, in plot_plots
self.update_user_elements()
File "C:\Python\lib\site-packages\xrt\plotter.py", line 1822, in update_user_elements
self.ax1dHistE.texts[:] = [t for t in self.ax1dHistE.texts
File "C:\Python\lib\site-packages\matplotlib\axes_base.py", line 1413, in setitem
index = self._axes.children.index(self[key])
File "C:\Python\lib\site-packages\matplotlib\axes_base.py", line 1368, in getitem
return [artist
TypeError: list indices must be integers or slices, not NoneType
-1073740791
Hello, Below is the trace when I run the example MontelMirror.py. After displaying several graphs, it exit suddenly with Typeerror message. Thanks for help.