Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

user27182
Copy link
Contributor

Overview

New general function for loading any example dataset. The main benefit of this function is that it can load the dataset and return the file path(s) in a single function call. This is unlike download_<name>, which requires two separate calls (one for the mesh, one for the file). In addition, since this uses the dataset loader class internally, it reliably returns all files used for loading the example, which is not the case for the load=False option, which usually only returns a single path.

A key motivator for this is #7624 ... to make that work I think we need to use a file lock on all files to prevent multiple workers from accessing the same file at the same time. And to do this, we need all file paths.

@pyvista-bot pyvista-bot added the enhancement Changes that enhance the library label Jun 20, 2025
@pyvista-bot
Copy link
Contributor

pyvista-bot commented Jun 21, 2025

@pyvista-bot pyvista-bot temporarily deployed to pull request June 21, 2025 01:25 Inactive
Copy link

codecov bot commented Jun 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.33%. Comparing base (8b1b589) to head (8cc9457).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7635   +/-   ##
=======================================
  Coverage   96.32%   96.33%           
=======================================
  Files         150      151    +1     
  Lines       32283    32330   +47     
  Branches     4080     4089    +9     
=======================================
+ Hits        31097    31144   +47     
  Misses        574      574           
  Partials      612      612           

@pyvista-bot pyvista-bot temporarily deployed to pull request June 21, 2025 04:30 Inactive
@pyvista-bot pyvista-bot temporarily deployed to pull request June 21, 2025 08:03 Inactive
@pyvista-bot pyvista-bot temporarily deployed to pull request June 21, 2025 18:48 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Changes that enhance the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants