microsoft / microsoft/Qcodes

Dataset write does not write if file was written and then deleted.

Open
#596 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Step to reproduce:

- do a loop
- finish the loop
- delete the file on disk

Then try to save agin:
- data.write()

The file won't re appear on disk.

@alexcjohnson is there a design idea behind this behaviour that I can't see ?

@everynodyelse Is this the wanted behaviour ?

Do we want a way to force save anyway ?

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.

Research direction

Start by reproducing the sequence in the issue: complete a loop, delete the dataset file, then call data.write(). Trace the Dataset write entry point and existing persistence tests, and clarify whether a deleted file should be recreated; done means the intended behavior is documented and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.