AttributeError: beamData instance has no attribute '__getitem__'
Despite the overlayFan docstring stating that a beamData object can be passed to overlayFan.
A workaround for this is to wrap any beamData object in square brackets since a scanData object is just a list of beamData objects and overlayFan works fine with scanData objects. TL;DR: replace the offending line of code with:
As reported in #254, running the code:
Produces the error:
Despite the
overlayFan
docstring stating that abeamData
object can be passed tooverlayFan
.A workaround for this is to wrap any
beamData
object in square brackets since ascanData
object is just a list ofbeamData
objects andoverlayFan
works fine withscanData
objects. TL;DR: replace the offending line of code with: