View int8 and uin8 Data as binary string or encoded string
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start by locating the dataset view in the Python 3 branch referenced by issue #186 and inspect how 8-bit integer datasets are currently displayed. Define the available binary, hexadecimal, and selected-encoding views from the examples, then verify that HDF5 datasets containing encoded byte data can be inspected without changing existing string views.
Written by the indexing model from the issue text.
Description
In python strings may be stored as encoded bytearray which in contrast to \0 terminated byte stringscan be compressed. The resulting 8 bit integer dataset is displayed as such by hdf-compas. Which makes inspections of such datasets a bit difficult. Therefore i do suggests to enhace dataset view for 8bit integer type datasets by providing alternative views like the following crude examples:
binary ....... view as plain binary bytes eg. print(bytearray(eight_bit_int_dataset[()]))
hex .......... view as hexstring instead eg. print("{:x}".format(eight_bit_int_dataset[()]))
<encoding> ... view as decoded bytarray content eg.
selected_encoding="utf8"
print(bytearray(eight_bit_int_dataset[()]).decode(selected_encoding))
That would allow to inspect hdf5 which encodes strings in eight bit int datasets instead of \0 terminated c-style string datasets.
NOTE as python2 is out of support this feature request shall only affect python3 branch #186
- Dominant language
- Python
- Stars
- 132
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HDFGroup/hdf-compass
-
FlatpakOpen
Difficulty 3/5 1-2 days Newbie friendliness 20/100
HDFGroup/hdf-compass#214 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
HDFGroup/hdf-compass#209 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
HDFGroup/hdf-compass#208 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
HDFGroup/hdf-compass#206 ·
-
Bug: unsafe importOpenbug
Difficulty 1/5 Under an hour Newbie friendliness 35/100
HDFGroup/hdf-compass#205 · 1 comment ·
All issues in HDFGroup/hdf-compass
Similar issues
-
AI bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AUTO-MAS-Project/AUTO-MAS#1960 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
btclib-org/btclib-wallet#872 ·
Maintainers usually reply within 1 day
-
[Bug]: Scheduled returns scan all accepted minion keys causing extreme loadPossibly taken A pull request linked to this issue is open or already merged. Openbug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
saltstack/salt#70789 · 1 comment ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
btclib-org/btclib#3093 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day