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

Skip to content

Conversation

@santisoler
Copy link
Member

Summary

Fix how the tar.gz archives that get downloaded are extracted in a few different examples. The previous code was getting the folder where files are extracted by splitting the full path of the downloaded .tar.gz archive using a ".". This causes issues when any parent folder contains a dot: the directory that is returned is not the correct one.

PR Checklist

  • If this is a work in progress PR, set as a Draft PR
  • Linted my code according to the style guides.
  • Added tests to verify changes to the code.
  • Added necessary documentation to any new functions/classes following the
    expect style.
  • Marked as ready for review (if this is was a draft PR), and converted
    to a Pull Request
  • Tagged @simpeg/simpeg-developers when ready for review.

Reference issue

What does this implement/fix?

Additional information

Fix how the tar.gz archives that get downloaded are extracted in a few
different examples. The previous code was getting the folder where files
are extracted by splitting the full path of the downloaded .tar.gz
archive using a `"."`. This causes issues when any parent folder
contains a dot: the directory that is returned is not the correct one.
@codecov
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

Attention: Patch coverage is 72.41379% with 8 lines in your changes missing coverage. Please review.

Project coverage is 86.17%. Comparing base (3eb16c0) to head (0cb25b6).

Files Patch % Lines
...amples/20-published/plot_booky_1D_time_freq_inv.py 71.42% 1 Missing and 1 partial ⚠️
.../20-published/plot_booky_1Dstitched_resolve_inv.py 71.42% 1 Missing and 1 partial ⚠️
...es/20-published/plot_laguna_del_maule_inversion.py 75.00% 1 Missing and 1 partial ⚠️
examples/20-published/plot_load_booky.py 71.42% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1491      +/-   ##
==========================================
- Coverage   86.18%   86.17%   -0.01%     
==========================================
  Files         394      394              
  Lines       50299    50323      +24     
  Branches     5309     5313       +4     
==========================================
+ Hits        43351    43367      +16     
- Misses       5494     5498       +4     
- Partials     1454     1458       +4     

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

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