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

Code cleanup - Remove getcompress functions #497

Merged

Conversation

bmribler
Copy link
Collaborator

@bmribler bmribler commented Feb 6, 2024

The functions SDgetcompress/GRgetcompress have incorrect behavior and were deprecated in favor of SDgetcompinfo/GRgetcompinfo several releases ago. They should not be used anymore.

Removed the internal function HCPgetcompress and replaced the contents of SDgetcompress/GRgetcompress with a call to SDgetcompinfo/GRgetcompinfo.

Uncommented the failed test in Fortran when getcompress function was used. It succeeds now.

Java API will be updated in another PR.

Description:
    A special bit, SZ_H4_REV_2, was used to indicate that the szip info
    was stored in a new way.  This bit was set in the options_mask field
    of the szip info struct.  As a result, the value of options_mask became
    incorrect.

    This PR removed the special bit from the options_mask before returning it
    to the application.  This change does not affect the data format in the
    file.
Description:
    The functions SDgetcompress/GRgetcompress have incorrect behavior and
    were deprecated in favor of SDgetcompinfo/GRgetcompinfo several
    versions ago.  They should not be used anymore.

    Removed the internal function HCPgetcompress and replaced the
    contents of SDgetcompress/GRgetcompress with a call to
    SDgetcompinfo/GRgetcompinfo.
@derobins derobins merged commit dadf933 into HDFGroup:master Feb 6, 2024
33 checks passed
@bmribler bmribler deleted the bmribler-remove_getcompress_functions branch March 9, 2024 06:11
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