-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
base: master
Are you sure you want to change the base?
Conversation
314075d
to
d5ac702
Compare
@@ -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) { |
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.
Very critical that CLASS_* is not the same as HDF5Constants.H5T_*
retVal |= isOpaque(); | ||
retVal |= isBitField(); | ||
|
||
return retVal; | ||
} | ||
|
||
private boolean datatypeClassIsComplex(long tclass) | ||
private boolean datatypeClassIsComplicated(long tclass) |
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.
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.
Initial implementation.
Using tcomplex.h5, will display (read only) DatasetFloatComplex, AttributeFloatComplex and DatasetDoubleComplex.