Station overwrite removes references to instruments but leaves instruments functioning
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 459
- Forks
- 359
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 73
Description
If one overwrites the station the snapshot gets reset - that is, it doesnt have any references to instruments previously imported. However, all instruments are still functioning in qcodes so measurements can be performed although all snapshots are completely empty.
I would expect the snapshot to always contain all instruments currently loaded in python.
Error arises if one accidentally reruns the initialization:
First init looks fine and snapshot has the instrument.

Rerun init without kernel reset throws an error on instrument import. However, station has already been overwritten. From user point everything looks fine and measurements can continue but all snapshots are empty which is discovered when it is needed in post analysis.

@jenshnielsen @Dominik-Vogel
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the station overwrite after rerunning initialization without a kernel reset, then inspect how station snapshots and instrument imports are handled. Confirm the existing instruments remain represented in the snapshot after overwrite, and verify that measurements and post-analysis see the same instrument data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100