Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update run_id when adding ds in mem to db #5209

Merged

Conversation

Dominik-Vogel
Copy link
Contributor

This should fix the issue of run_ids not getting incremented when importing netcdf datasets or datasets in memory in general.
Addressing the issue we have talked about @jenshnielsen .

I have replaced the table name return value, as I could not find it used anywhere and it is not a part of a public API.

@jenshnielsen
Copy link
Collaborator

@Dominik-Vogel Thanks. Looks like it is used in database_extract_runs.py see typechecking error.

I think we should see if we can write a test for this too

@jenshnielsen jenshnielsen force-pushed the fix_run_id_dataset_in_mem branch from b50fa29 to c5096a1 Compare June 16, 2023 09:38
@codecov
Copy link

codecov bot commented Jun 16, 2023

Codecov Report

Merging #5209 (270b302) into master (c5ec9c7) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5209      +/-   ##
==========================================
- Coverage   67.36%   67.34%   -0.02%     
==========================================
  Files         359      359              
  Lines       29896    29901       +5     
==========================================
- Hits        20138    20136       -2     
- Misses       9758     9765       +7     

@jenshnielsen jenshnielsen force-pushed the fix_run_id_dataset_in_mem branch from 285c58b to 628b826 Compare June 19, 2023 07:31
@jenshnielsen
Copy link
Collaborator

@Dominik-Vogel I have added tests and implemented the same fix for counter and exp_id. Could you have another look?

qcodes/dataset/dataset_helpers.py Outdated Show resolved Hide resolved
@jenshnielsen jenshnielsen force-pushed the fix_run_id_dataset_in_mem branch from 14b60f5 to 270b302 Compare June 19, 2023 08:39
@jenshnielsen jenshnielsen enabled auto-merge June 19, 2023 08:51
@jenshnielsen jenshnielsen added this pull request to the merge queue Jun 19, 2023
Merged via the queue into microsoft:master with commit 6b33828 Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants