Skip to content

Failing instrument creation adds instrument to list of instruments  #348

@AdriaanRol

Description

@AdriaanRol

Steps to reproduce

  1. Create an instrument that fails (e.g. timeout, invalid arguments etc)
  2. The name of the instrument gets added to the list of existing instruments
  3. This prevents creating an instrument with the same name that does not fail.
  4. This is a problem because you want to create an instrument with that name when you fixed e.g. your invalid input argument/address or driver bug.

Expected behaviour

The name of the instrument does not get added to the list of current instruments

Actual behaviour

The name of the instrument gets added to the list of instruments preventing any other instrument from being created with that name, even though no instrument with the name actually exists.

Workaround

As suggested by @alexcjohnson use Instrument.find_instrument(name).close() to close the non-existing instrument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions