Refactor structure handling within dataobjects?
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by perusing the format documentation, then inspect the listed flag-dependent parsing paths in dataobjects: _parse_v2_header, _get_attributes_from_attr_info, _decode_link_info_msg, _decode_link_msg, and determine_data_shape. Done means identifying other unhandled flag-dependent cases and assessing whether a shared wrapper is appropriate; the issue does not specify a particular implementation.
Written by the indexing model from the issue text.
Description
In PR #295 which fixes #294, there is an expedient bug fix. The question arises as to whether this bug fix is an example of a pattern which should be refactored.
AI surfaced the following candidates for consideration of using a wrapper around unpack_structure_from which uses flags and structure variants.
_parse_v2_headerconditionally reads timestamps and adjusts the creation-order size based on flag bits (line 167)._get_attributes_from_attr_infoskips an optional field and conditionally reads another address (line 250). The file already defines alternate structure descriptions for this message, which suggests this case is a natural candidate (line 914)._decode_link_info_msgchooses between two address layouts based on a flag (line 803); both layouts are already defined (line 1015)._decode_link_msghas several independently optional fields and a flag-selected name-length format (line 702).
determine_data_shape conditionally reads maximum dimensions based on a flag (line 866).
Rather than rushing into something to handle these cases, it's probably worth a serious perusal of the documentation to see if we can surface other unhandled examples of flag dependent behaviour.
- Dominant language
- Python
- Stars
- 105
- Forks
- 29
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
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 NCAS-CMS/pyfive
-
further optimisationPossibly taken @bnlawrence claimed this 47 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 18/100
Maintainers usually reply within 1 day
-
pyfive and hdf5>=2Openinstallation
Difficulty 4/5 3-5 days Newbie friendliness 25/100
NCAS-CMS/pyfive#279 · 2 comments ·
Maintainers usually reply within 1 day
-
VDS datasets silently return NoneMay be free again @bnlawrence claimed this 48 days ago, and no pull request is open. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
NCAS-CMS/pyfive#275 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
difference in check_dtype for vlen compared to h5pyMay be free again @davidhassell claimed this 152 days ago, and no pull request is open. Openquestion
NCAS-CMS/pyfive#228 · 13 comments · 2 assignees ·
Maintainers usually reply within 1 day
-
question
Difficulty 5/5 Over a week Newbie friendliness 35/100
NCAS-CMS/pyfive#219 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
area: ci enhancement perceived difficulty: 1
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Nitjsefnie-Harness-Commons/daedalus#1826 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
vllm-project/vllm-sail#398 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DiamondLightSource/sm-bluesky#476 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100