Narrow numpydoc cleanup to correctness-only docstring fixes - #2492
Draft
GernotMaier with Copilot wants to merge 2 commits into
Draft
Narrow numpydoc cleanup to correctness-only docstring fixes#2492GernotMaier with Copilot wants to merge 2 commits into
GernotMaier with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: GernotMaier <14001688+GernotMaier@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix numpydoc issues in documentation
Narrow numpydoc cleanup to correctness-only docstring fixes
Aug 31, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR narrows the numpydoc cleanup effort to correctness-only docstring fixes, focusing on aligning public docstrings with function signatures and NumPy-style parameter formatting without changing runtime behavior.
Changes:
- Added missing
Parameters/Returnssections for public version helpers insrc/simtools/version.py. - Normalized malformed parameter declarations in
Simulatordocstrings to NumPy style (name : type) insrc/simtools/simulator.py.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/simtools/version.py | Adds/expands docstring sections to match helper function parameter/return contracts for version validation utilities. |
| src/simtools/simulator.py | Fixes malformed parameter type declarations in docstrings; still needs minor docstring correctness tweaks for accepted values/types. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+107
to
109
| simulation_software : str | ||
| implemented are sim_telarray and CORSIKA or corsika_sim_telarray | ||
| (running CORSIKA and piping it directly to sim_telarray) |
Comment on lines
+671
to
672
| directory_for_grid_upload : str | ||
| Directory for the output files. |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





Release Candidate
This pull request should be opened from the branch
<version>-rc, for examplev0.36.0-rc. It should be the final pull request before the release.Docstring cleanup is now limited to correctness defects only: parameter/return mismatches and invalid type field formatting. This avoids broad documentation expansion while resolving the high-signal numpydoc failures.
Parameters/Returnssections for public version helpers where docs did not match function signatures.Simulatordocstrings to NumPy style (name : type).Test-resource generation
This release might require updates to test resources in the
simtools-testsrepository whensimtools changes the output format or content of generated files.
If test resources must be updated:
simtools-prodimage, including the required image variant and tag.simtools-resources-test-generateand commit them tosimtools-tests.--test_resources_path.Release Preparation Checklist
New test resources are committed to
simtools-tests, or no resource update is required.All unit and integration tests pass.
The release-candidate pull request is confirmed as the final pull request before the release.
All notable changes documented in CHANGELOG.md using towncrier:
Replace
v0.36.0with the final release version, not the release-candidate version.This updates the changelog using the fragments in the
docs/changesdirectory.CHANGELOG.mdreviewed and confirmed complete.New version added to docs/_static/switcher.json.
CITATION reviewed and updated if necessary.
Review requested from the simtools team.
Pull request approved and ready to merge to
main.After merging the release-candidate pull request
v0.36.0-rc1.build-simtools-prodworkflow isconfigured for both candidate-tag pushes and published releases; verify the expected image before generating
test resources.