microsoft / microsoft/Qcodes

Handling interrupts

Open
#598 5 comments 0 reactions 1 assignee View on GitHub

@giulioungaretti is already working on this.

Since May 8, 2017.

discussion enhancement
Dominant language
Python
Stars
459
Forks
359
Avg merge
3d 6h
Merged PRs (30d)
73

Description

Hi all (esp you @eendebakpt @peendebak @MerlinSmiles ),
let's use this issue to fix the problem of handling interruptions.

There are two parts to this problem:

- How to deal with blocking instruments call:

1. Let the instrument finish (at all costs) unless a hard stop is requests (like force interrupt)
2. Break the blocking call, leaving the instrument in a potentially undefined state (if something was request but not read f.ex. of if an command write was interrupted before the entire command was written)

- Where to stop in a loop (but since may people have their own loop that's maybe less important):

1. It does not matter
2. At every sate change ( basically any I/O: send command to instrument, write to disk etc)
3. None of the above

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.