Skip to content

Update save_resource to handle downloading resources in nested folders - #2931

Merged
gsheni merged 4 commits into
mainfrom
issue-2917-the-save_resource-for-demo-datasets-filepath
Jul 23, 2026
Merged

Update save_resource to handle downloading resources in nested folders#2931
gsheni merged 4 commits into
mainfrom
issue-2917-the-save_resource-for-demo-datasets-filepath

Conversation

@gsheni

@gsheni gsheni commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@gsheni gsheni self-assigned this Jul 22, 2026
@gsheni
gsheni marked this pull request as ready for review July 22, 2026 20:14
@gsheni
gsheni requested a review from a team as a code owner July 22, 2026 20:14
@gsheni
gsheni requested review from frances-h and removed request for a team July 22, 2026 20:14
@sdv-team

Copy link
Copy Markdown
Contributor

@gsheni
gsheni requested a review from pvk-developer July 22, 2026 20:15
@gsheni gsheni changed the title Add resource_filepath parameter to save_resource to support filepaths and filenames under demo dataset Update save_resource to handle downloading resources in nested folders Jul 22, 2026
@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.08%. Comparing base (22340d8) to head (816ca10).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2931      +/-   ##
==========================================
+ Coverage   98.07%   98.08%   +0.01%     
==========================================
  Files          73       73              
  Lines        8513     8531      +18     
==========================================
+ Hits         8349     8368      +19     
+ Misses        164      163       -1     
Flag Coverage Δ
integration 76.39% <88.88%> (+0.04%) ⬆️
unit 97.06% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread sdv/datasets/demo.py
Comment thread sdv/datasets/demo.py Outdated
Comment on lines 893 to 894
output_filepath (str or None):
Optional path where to save the file.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This docstring should be updated since we're not allowing output_filepath to be None

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed:
816ca10

@gsheni
gsheni merged commit 5dcdba3 into main Jul 23, 2026
47 of 61 checks passed
@gsheni
gsheni deleted the issue-2917-the-save_resource-for-demo-datasets-filepath branch July 23, 2026 16:07
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.

The save_resource for demo datasets should be able to handle filepaths (not just filenames)

4 participants