con / con/nwb2bids

Rethink session metadata default populations

Open
#388 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5
Forks
6
Avg merge
4h 6m
Merged PRs (30d)
1

Description

Resolving mypy errors in https://github.com/con/nwb2bids/pull/387 required a lot of null checks prior to accessing fields known implicitly to be set by the later operations

Would reduce duplication to just rethink the way the object and its field initializes - something like a default population but safe retrieval (dict-like)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing PR #387 and the session metadata object and field initialization discussed in the issue. Define a safer default-population or dict-like retrieval approach that removes repeated null checks while preserving mypy correctness; done means the affected metadata accesses no longer require redundant checks and the mypy errors are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-engineering
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.