Skip to content

SimulatedLightSource with no HW trigger produces errors in cockpit experiments. #913

@iandobbie

Description

@iandobbie

If you setup a microscope provided SimulatedLightSource without a HW trigger, ie has no triggerSource and triggerLine entries in the depot file then experiments fail in a very opaque manner. The error is below

Exception in thread Experiment-execute:
Traceback (most recent call last):
  File "C:\Users\idobbie1\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "C:\Users\idobbie1\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\idobbie1\src\cockpit\cockpit\experiment\experiment.py", line 405, in execute
    events.executeAndWaitFor(events.EXPERIMENT_EXECUTION,
  File "C:\Users\idobbie1\src\cockpit\cockpit\events.py", line 308, in executeAndWaitFor
    return executeAndWaitForOrTimeout(eventType, func, None, *args, **kwargs)
  File "C:\Users\idobbie1\src\cockpit\cockpit\events.py", line 342, in executeAndWaitForOrTimeout
    func(*args, **kwargs)
  File "C:\Users\idobbie1\src\cockpit\cockpit\handlers\executor.py", line 209, in executeTable
    return self.callbacks['executeTable'](actions, 0, len(actions), numReps,
  File "C:\Users\idobbie1\src\cockpit\cockpit\devices\executorDevices.py", line 204, in executeTable
    self.connection.PrepareActions(actions, numReps)
  File "C:\Users\idobbie1\AppData\Local\Programs\Python\Python310\lib\site-packages\Pyro4\core.py", line 185, in __call__
    return self.__send(self.__name, args, kwargs)
  File "C:\Users\idobbie1\AppData\Local\Programs\Python\Python310\lib\site-packages\Pyro4\core.py", line 476, in _pyroInvoke
    raise data  # if you see this in your traceback, you should probably inspect the remote traceback as well
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions