Skip to content

Commit

Permalink
Made Xspress3 configure get called at seek...
Browse files Browse the repository at this point in the history
  • Loading branch information
peteleicester committed Dec 9, 2016
1 parent be72dd4 commit 45b9f6c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions malcolm/parts/xspress3/xspress3driverpart.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from malcolm.core import method_takes, REQUIRED
from malcolm.core.vmetas import PointGeneratorMeta
from malcolm.controllers.runnablecontroller import RunnableController
from malcolm.controllers.runnablecontroller import RunnableController, configure_args
from malcolm.parts.ADCore.detectordriverpart import DetectorDriverPart


Expand All @@ -9,8 +9,9 @@

class Xspress3DriverPart(DetectorDriverPart):
@RunnableController.Configure
@method_takes(
"generator", PointGeneratorMeta("Generator instance"), REQUIRED)
@RunnableController.PostRunReady
@RunnableController.Seek
@method_takes(*configure_args)
def configure(self, task, completed_steps, steps_to_do, part_info, params):
if steps_to_do > XSPRESS3_BUFFER:
# Set the PointsPerRow from the innermost generator
Expand Down

0 comments on commit 45b9f6c

Please sign in to comment.