Align str/repr of core types
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Start by locating the implementations of the core types named in the issue: AttrvalsDict, NcVariable, NcData, and NameMap, then inspect how their str and repr behavior is defined. Compare the current interactive outputs and align the representations consistently, verifying that groups and variables display as intended.
Written by the indexing model from the issue text.
Description
Since providing a 'useful' AttrvalsDict.str(), find that this is not the repr(), which instead looks like <ncdata._core.AttrvalsDict object at 0x...>
This is consistent for most core objects, e.g. <ncdata._core.NcVariable object at 0x...>
But a NameMap object doesn't do that, e.g.
>>> ds
<ncdata._core.NcData object at 0x0000024F7ADFC2F0>
>>> ds.variables['v']
<ncdata._core.NcVariable object at 0x0000024F7B8824E0>
but ..
>>> ds.groups
{}
>>> ds.variables
{'v': <ncdata._core.NcVariable object at 0x0000024F7B8824E0>}
>>>```
- Dominant language
- Python
- Stars
- 16
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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 SciTools/ncdata
-
Link Checker Report Openautomated issue report
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Link Checker Report Openautomated issue report
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Link Checker Report Openautomated issue report
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Link Checker Report Openautomated issue report
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Link Checker Report Openautomated issue report
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100