HDFGroup / HDFGroup/hdf-compass

compass doesn't display enum_type value as HDF5 indicates

Open
#97 2 comments 0 reactions 0 assignees View on GitHub
bug HDF5
Dominant language
Python
Stars
132
Forks
27
PR merge metrics
No merged PRs in 30d

Description

1) File: ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/HDFCompass/kent-files/hdf5-handler-fake/ntypes.h5

2) Testing version: Windows version of the release candidate from S3

The HDF5 ENUM type at h5compass is treated as 2-byte signed integer. In compass you just see numbers like 0,1,2,......
The information about ENUM is lost. This is the snippet of h5dump output. I think compass can at least provide the mapping of enum to the integer number.

DATATYPE H5T_ENUM {
H5T_STD_I16LE;
"RED" 0;
"GREEN" 1;
"BLUE" 2;
"YELLOW" 3;
"PINK" 4;
"PURPLE" 5;
"ORANGE" 6;
"WHITE" 7;
}
DATASPACE SIMPLE { ( 100, 200 ) / ( 100, 200 ) }
DATA {
(0,0): RED, PURPLE, BLUE, WHITE, PINK, GREEN, ORANGE, YELLOW, RED,
.....

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the provided ntypes.h5 file in HDF Compass and compare the enum display with the h5dump output shown in the issue. Trace how the HDF5 ENUM datatype is rendered as integer values; done means the display preserves and exposes the named mappings such as RED=0 and PURPLE=5.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.