Skip to content

Commit

Permalink
Merge pull request psychopy#6977 from TEParsons/dev-enh-session-start
Browse files Browse the repository at this point in the history
FF: Send Liaison message when experiment starts via Session
  • Loading branch information
TEParsons authored Nov 22, 2024
2 parents 171567b + 226eefe commit f8dda19
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions psychopy/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,14 @@ def runExperiment(self, key, expInfo=None, blocking=True):
).format(key=key, expInfo=expInfo))
# reset session clock
self.experimentClock.reset()
# send start event to liaison
if self.liaison is not None:
self.sendToLiaison({
'type': "experiment_status",
'name': thisExp.name,
'status': constants.STARTED,
'expInfo': expInfo
})
# Run this experiment
try:
self.experiments[key].run(
Expand Down

0 comments on commit f8dda19

Please sign in to comment.