Skip to content

Docstrings and annotations - #320

Merged
BFuks merged 8 commits into
multiweight-lightfrom
docstring-annotation
Sep 28, 2026
Merged

BFuks merged 8 commits into
multiweight-lightfrom
docstring-annotation

Conversation

@jackaraz

Copy link
Copy Markdown
Member

Improve documentation throughout MadAnalysis.

- Added type hints for method parameters and return types across various configuration classes including FastsimConfiguration, FomConfiguration, IsolationCone, IsolationConfiguration, IsolationSumPt, MergingConfiguration, RecastConfiguration, and TauIdentification.
- Improved docstrings to provide clearer descriptions of class attributes, methods, and their parameters.
- Corrected minor issues in logging messages and error handling.
- Ensured consistent formatting and style across all configuration files.
- Added type hints and detailed docstrings to the detection classes for pdflatex, python, root, root graphical, simplify, spey, zlib, and session/user info.
- Improved method signatures to include return types and argument types for better clarity and type checking.
- Updated logging messages for clarity and consistency.
- Fixed minor issues in the detection logic and comments.
@github-actions

Copy link
Copy Markdown

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

- Updated type hints for function parameters and return types in `install_delphes.py`, `install_service.py`, `cutflow_for_dataset.py`, `layout.py`, `merging_plots.py`, `plotflow.py`, `plotflow_for_dataset.py`, `histfactory_reader.py`, `run_recast.py`, `test_run_recast.py`, and `theoretical_error_setup.py`.
- Improved docstrings to provide clearer descriptions of functions, parameters, and return values, enhancing code readability and maintainability.
- Added type checks for various data structures, including lists and dictionaries, to ensure better type safety.
- Added detailed Doxygen-style comments to header and implementation files for LHEWriter, SAFWriter, WriterBase, WriterManager, and WriterTextBase, improving code readability and maintainability.
- Updated the newAnalyzer.py script to include type hints and docstrings for better clarity and usability.
- Included smoke tests for various interfaces (Delphes, FastJet, HEPTopTagger, etc.) with appropriate documentation to ensure proper linking and functionality.
- Improved error handling and comments in the newAnalyzer.py script to guide users in creating new analysis classes.
@jackaraz
jackaraz marked this pull request as ready for review September 28, 2026 13:21
@jackaraz
jackaraz requested a review from BFuks September 28, 2026 13:21
@BFuks
BFuks merged commit 10e57f7 into multiweight-light Sep 28, 2026
@BFuks
BFuks deleted the docstring-annotation branch September 28, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants