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

H5Ztrans: (feature) Improved H5Z_xform_noop() and H5Z_xform_create() … #933

Merged
merged 5 commits into from
Sep 13, 2021

Conversation

jwsblokland
Copy link
Contributor

Improved H5Z_xform_noop() and H5Z_xform_create() function

  • Made a small improvement for H5Z_xform_noop() function. Now,
    the function will also return TRUE if the data transform function
    expression = "x". For this case, the HDF5 library behaves in a
    similar fashion as the case when no data transform function has been
    specified.
  • Improved the inline documentation of the function
    H5Z_xform_create() such it is more inline with the rest of the
    code.

This pull request has been requested in the abandoned pull request #922.

Copy link
Contributor

@qkoziol qkoziol left a comment

Choose a reason for hiding this comment

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

This code looks fine, but it needs a test, to demonstrate that it actually works. Adding it to both the serial testing for data transforms (in the 'test' directory) and the parallel testing (in the 'testpar' directory) is probably necessary, since I believe that use in parallel HDF5 is desired.

@qkoziol
Copy link
Contributor

qkoziol commented Aug 19, 2021

This code looks fine, but it needs a test, to demonstrate that it actually works. Adding it to both the serial testing for data transforms (in the 'test' directory) and the parallel testing (in the 'testpar' directory) is probably necessary, since I believe that use in parallel HDF5 is desired.

Also, with a test, you'll guarantee that it stays working. :-)

@jwsblokland
Copy link
Contributor Author

jwsblokland commented Aug 20, 2021

As requested I have added 1 serial test and 2 parallel tests. I must admit usually I add some tests to demostrates the feature or bug fix works as expected. Apparently, this case I did not, so thank you for reminding me to add these tests.

jwsblokland and others added 4 commits August 20, 2021 15:45
…function

- Made a small improvement for H5Z_xform_noop() function. Now,
  the function will also return TRUE if the data transform function
  expression = "x". For this case, the HDF5 library behaves in a
  similar fashion as the case when no data transform function has been
  specified.
- Improved the inline documentation of the function
  H5Z_xform_create() such it is more inline with the rest of the
  code.
- Added serial test with data transform expression = "x" to
  verify the improved H5Z_xform_noop() function behaves as expected.
- Added 2 parallel tests with data transform expression = "x"
  in combination with a filter. Before, these tests will fail but
  with the improved H5Z_xform_noop() function they work and result
  in the expected behavior.
- Small bug fix for one of parallel filter tests.
* the transform function. Therefore it does not apply
* the transform function resulting in not breaking to
* independent I/O.
*
Copy link

Choose a reason for hiding this comment

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

Please add the comment to the RELEASE.txt file (similar to what you have here) explaining the change. It should go under Bug Fixed since HDF5 ... / Library.
Thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@epourmal , I have added a comment about the implemented improvement to the RELEASE.txt file. Thanks for mentioning this.

Choose a reason for hiding this comment

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

Thank you! We are currently testing on HPC systems now and will accept the change.

           simple data transform function "x".

- Added a brief explanation about the implemented improvement
  of the detection of the simple data transform function "x"
  to the RELEASE.txt file.
@lrknox
Copy link
Collaborator

lrknox commented Sep 13, 2021

The tests added also passed on jelly, lassen quartz and mutrino.

@lrknox lrknox merged commit 7c973de into HDFGroup:develop Sep 13, 2021
lrknox added a commit that referenced this pull request Sep 14, 2021
#933) (#1007)

* H5Ztrans: (feature) Improved H5Z_xform_noop() and H5Z_xform_create() function

- Made a small improvement for H5Z_xform_noop() function. Now,
  the function will also return TRUE if the data transform function
  expression = "x". For this case, the HDF5 library behaves in a
  similar fashion as the case when no data transform function has been
  specified.
- Improved the inline documentation of the function
  H5Z_xform_create() such it is more inline with the rest of the
  code.

* Committing clang-format changes

* H5Ztrans: (feature) Added 3 tests for improved H5Z_xform_noop() function

- Added serial test with data transform expression = "x" to
  verify the improved H5Z_xform_noop() function behaves as expected.
- Added 2 parallel tests with data transform expression = "x"
  in combination with a filter. Before, these tests will fail but
  with the improved H5Z_xform_noop() function they work and result
  in the expected behavior.
- Small bug fix for one of parallel filter tests.

* Committing clang-format changes

* H5Ztrans: (feature) Added release note about detection of the
           simple data transform function "x".

- Added a brief explanation about the implemented improvement
  of the detection of the simple data transform function "x"
  to the RELEASE.txt file.

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

Co-authored-by: Jan-Willem Blokland <Jan-Willem.Blokland@Shell.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
lrknox added a commit that referenced this pull request Sep 14, 2021
#933) (#1008)

* H5Ztrans: (feature) Improved H5Z_xform_noop() and H5Z_xform_create() function

- Made a small improvement for H5Z_xform_noop() function. Now,
  the function will also return TRUE if the data transform function
  expression = "x". For this case, the HDF5 library behaves in a
  similar fashion as the case when no data transform function has been
  specified.
- Improved the inline documentation of the function
  H5Z_xform_create() such it is more inline with the rest of the
  code.

* Committing clang-format changes

* H5Ztrans: (feature) Added 3 tests for improved H5Z_xform_noop() function

- Added serial test with data transform expression = "x" to
  verify the improved H5Z_xform_noop() function behaves as expected.
- Added 2 parallel tests with data transform expression = "x"
  in combination with a filter. Before, these tests will fail but
  with the improved H5Z_xform_noop() function they work and result
  in the expected behavior.
- Small bug fix for one of parallel filter tests.

* Committing clang-format changes

* H5Ztrans: (feature) Added release note about detection of the
           simple data transform function "x".

- Added a brief explanation about the implemented improvement
  of the detection of the simple data transform function "x"
  to the RELEASE.txt file.

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

Co-authored-by: Jan-Willem Blokland <Jan-Willem.Blokland@Shell.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
@jwsblokland jwsblokland deleted the feature/data_transform branch September 13, 2023 14:40
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.

5 participants