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

Resolve relative links used by multi-level datasets as specified #637

Merged
merged 8 commits into from
Mar 7, 2022

Conversation

forman
Copy link
Member

@forman forman commented Mar 3, 2022

[Description of PR]

Checklist:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/source/*
  • Changes documented in CHANGES.md
  • AppVeyor CI passes
  • Test coverage remains or increases (target 100%)

Remember to close associated issues after merge!

@codecov-commenter
Copy link

codecov-commenter commented Mar 4, 2022

Codecov Report

Merging #637 (1149ff1) into master (88647b0) will increase coverage by 0.04%.
The diff coverage is 94.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #637      +/-   ##
==========================================
+ Coverage   91.91%   91.96%   +0.04%     
==========================================
  Files         293      294       +1     
  Lines       27026    27090      +64     
==========================================
+ Hits        24840    24912      +72     
+ Misses       2186     2178       -8     
Impacted Files Coverage Δ
xcube/core/level.py 84.61% <33.33%> (+1.60%) ⬆️
xcube/core/store/fs/impl/mldataset.py 88.96% <93.61%> (-1.88%) ⬇️
xcube/core/store/fs/helpers.py 96.55% <96.00%> (-3.45%) ⬇️
test/core/store/fs/test_helpers.py 100.00% <100.00%> (ø)
test/core/test_level.py 98.80% <100.00%> (-1.20%) ⬇️
xcube/core/mldataset.py 78.67% <100.00%> (+0.06%) ⬆️
xcube/core/store/fs/store.py 86.39% <100.00%> (+2.91%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88647b0...1149ff1. Read the comment docs.

@forman forman requested a review from TonioF March 4, 2022 09:15
@forman forman marked this pull request as ready for review March 4, 2022 09:38
@forman forman self-assigned this Mar 4, 2022
Copy link
Contributor

@TonioF TonioF left a comment

Choose a reason for hiding this comment

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

Good, just one suggestion for documentation update.

def get_fs_path_class(fs: fsspec.AbstractFileSystem) \
-> Type[pathlib.PurePath]:
"""
Get the appropriate ``pathlib.PurePath`` class for the filesystem *fs*.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Get the appropriate ``pathlib.PurePath`` class for the filesystem *fs*.
Get the appropriate ``pathlib.PurePath`` class.

This method also returns the appropriate path class for other file systems.

Copy link
Member Author

Choose a reason for hiding this comment

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

This method also returns the appropriate path class for other file systems.

What other filesystems? There is only one argument named fs.

@forman forman merged commit d984353 into master Mar 7, 2022
@forman forman deleted the forman-636-resolve_rel_mldataset_links branch March 31, 2022 07:03
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