scipp / scipp/scippneutron

Incomplete docstings in `chopper_cascade` module

Open
#679 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6
Forks
4
Avg merge
6d 13h
Merged PRs (30d)
5

Description

A user was trying to use the output of this module directly instead of the builtin plotting utility. It turned out that was difficult without looking at the code because some fields of the dataclasses lack docstrings and thus do not appear in the API docs. Example:

https://github.com/scipp/scippneutron/blob/fefeafe79b749d71fcb7bf3701dec1d4fb479eb8/src/scippneutron/tof/chopper_cascade.py#L63-L64

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/scippneutron/tof/chopper_cascade.py, especially the dataclass fields around lines 63–64, and inspect the surrounding module to identify fields missing docstrings. Document the fields so they appear in the generated API documentation, then verify that the module’s API docs expose the added descriptions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.