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

Use Dask delayed to export large datasets to NetCDF #5391

Merged
merged 24 commits into from
Oct 4, 2023

Conversation

jenshnielsen
Copy link
Collaborator

Avoid loading a potentially huge dataset into memory just to be able to rewrite it to disk.

This writes each row of a dataset to disk individually and then uses dask/xarray to lazily merge the dataset into one file

@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Merging #5391 (9f43f65) into master (30659dd) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5391      +/-   ##
==========================================
+ Coverage   68.27%   68.30%   +0.03%     
==========================================
  Files         341      341              
  Lines       29901    29935      +34     
==========================================
+ Hits        20414    20448      +34     
  Misses       9487     9487              

pyproject.toml Outdated Show resolved Hide resolved
@jenshnielsen jenshnielsen changed the title [wip] Better export of large dataset to netcdf Use Dask delayed to export large datasets to NetCDF Oct 4, 2023
@jenshnielsen jenshnielsen marked this pull request as ready for review October 4, 2023 11:57
qcodes/dataset/data_set.py Outdated Show resolved Hide resolved
qcodes/dataset/data_set.py Show resolved Hide resolved
qcodes/dataset/data_set.py Outdated Show resolved Hide resolved
docs/changes/newsfragments/5391.new Show resolved Hide resolved
qcodes/tests/dataset/test_dataset_export.py Show resolved Hide resolved
@jenshnielsen jenshnielsen enabled auto-merge October 4, 2023 13:10
@jenshnielsen jenshnielsen added this pull request to the merge queue Oct 4, 2023
Merged via the queue into microsoft:master with commit 4b58493 Oct 4, 2023
@jenshnielsen jenshnielsen deleted the export_large_dataset branch October 4, 2023 14:20
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.

2 participants