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

Add support for complex types - basic implemented #348

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

byrnHDF
Copy link
Collaborator

@byrnHDF byrnHDF commented Dec 18, 2024

Initial implementation.
Using tcomplex.h5, will display (read only) DatasetFloatComplex, AttributeFloatComplex and DatasetDoubleComplex.

@byrnHDF byrnHDF added Component - Object Library Improvements to the object library Component - HDFView Improvements to the visual interface layer Type - New Feature Add a new API call, functionality, or tool Priority - 1. High 🔼 These are important issues that should be resolved in the next release labels Dec 18, 2024
@byrnHDF byrnHDF self-assigned this Dec 18, 2024
@byrnHDF byrnHDF reopened this Dec 18, 2024
@@ -1738,8 +1795,8 @@ public static final Object allocateArray(final H5Datatype dtype, int numPoints)
for (int i = 0; i < numPoints; i++)
((String[])data)[i] = "";
}
else if (typeClass == HDF5Constants.H5T_INTEGER) {
log.trace("allocateArray(): class H5T_INTEGER");
else if (typeClass == CLASS_INTEGER) {
Copy link
Collaborator Author

@byrnHDF byrnHDF Dec 18, 2024

Choose a reason for hiding this comment

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

Very critical that CLASS_* is not the same as HDF5Constants.H5T_*

@fortnern fortnern marked this pull request as draft December 20, 2024 17:08
retVal |= isOpaque();
retVal |= isBitField();

return retVal;
}

private boolean datatypeClassIsComplex(long tclass)
private boolean datatypeClassIsComplicated(long tclass)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I had to do similar in HDF5 for the complex numbers - suggest that you use "composite" instead of complicated. Assuming here that these are for datatypes that are composed of other types, rather than actually "complicated" since that's ambiguous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - HDFView Improvements to the visual interface layer Component - Object Library Improvements to the object library Priority - 1. High 🔼 These are important issues that should be resolved in the next release Type - New Feature Add a new API call, functionality, or tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants