pymmcore-plus / useq-schema

An implementation agnostic schema for describing a sequence of events during a multi-dimensional imaging acquisition.
https://pymmcore-plus.github.io/useq-schema/
BSD 3-Clause "New" or "Revised" License
15 stars 5 forks source link

Bug: AFplan private _previous index leads to issues if reused #123

Open tlambert03 opened 1 year ago

tlambert03 commented 1 year ago

The private _previous attribute on the AFAxesPlan has a bug: if the same AFplan object is used to iterate multiple times, the second time(s) will be different than the first. As a rather ugly workaround, we could have iter_sequence clear the _previous attribute...