-
Notifications
You must be signed in to change notification settings - Fork 9
592 improvement hdf5 dataset as regex #597
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
base: main
Are you sure you want to change the base?
592 improvement hdf5 dataset as regex #597
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement!
A few more comments. From my point of view, this PR should be high priority since it improves code already in main. Once merged, we can do a long awaited release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this is great.
That being said, I think that a few little changes are needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, forgot to post thic comment apparently. Here it is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Some remaining small remarks. I believe we're converging
| } | ||
| for (auto&& dsets_elem = dsets.begin(); dsets_elem != dsets.end(); ++dsets_elem) { | ||
| if (std::regex_match(dataset_name, dsets_elem->regex())) { | ||
| if (!dset_found.has_value()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can also just do:
| if (!dset_found.has_value()) { | |
| if (!dset_found) { |
but what you did is perfectly fine and maybe more explicit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!!!
This looks really good to me. This is really a great improvement, with a highly requested feature and great code quality. I'd say this is ready to ship
This PR correspond to fix the comment in the previous PR #583
List of things to check before making a PR
Before merging your code, please check the following:
.clang-format;Fix #issuekeyword to autoclose the issue when merged.