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

Normalize subfile path in H5 lib #5924

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

nilsvu
Copy link
Member

@nilsvu nilsvu commented Apr 18, 2024

This has bothered me for a long time. A leading slash and no extension for subfile names was required before, and failing to do this lead to rather useless error messages. Now, the leading slash and the extension are handled within the H5 lib, so it should be much easier to use.

Proposed changes

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

Copy link
Contributor

@knelli2 knelli2 left a comment

Choose a reason for hiding this comment

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

@nilsdeppe Could you take a quick look at this? I want to merge this before #5919 because it's used in there

Comment on lines +397 to +398
if (path.front() != '/') {
path = '/' + path;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a test of this normalization in the c++ tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

done and squashed in

This has bothered me for a long time. A leading slash and
_no_ extension for subfile names was required before,
and failing to do this lead to rather useless error messages.
Now, the leading slash and the extension are handled
within the H5 lib, so it should be much easier to use.
@nilsdeppe
Copy link
Member

No need to wait for explicit approval from me.

@knelli2 knelli2 enabled auto-merge April 23, 2024 19:12
@knelli2 knelli2 added the auto-merge GitHub's auto-merge has been enabled for this PR. label Apr 23, 2024
@knelli2 knelli2 merged commit 3c072f0 into sxs-collaboration:develop Apr 23, 2024
22 checks passed
@nilsvu nilsvu deleted the normalize_subfile_path branch April 23, 2024 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge GitHub's auto-merge has been enabled for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants