Skip to content

[docs] Docstrings for aim models - #61

Merged
il3241ya merged 24 commits into
CAVISE:mainfrom
tori-da-vi:aim-docstrings
Mar 30, 2026
Merged

[docs] Docstrings for aim models#61
il3241ya merged 24 commits into
CAVISE:mainfrom
tori-da-vi:aim-docstrings

Conversation

@tori-da-vi

@tori-da-vi tori-da-vi commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

This PR adds NumPy-style docstrings for the AIM module.

Changes:

Added OpenCDA-style docstrings
Added type hints
Improved readability and maintainability

No functional changes.

Enhance type hints and docstrings for clarity.
Updated type hints and added docstrings for clarity.
Added type annotations for get_model and list_models.
Updated the function signature of _discover_model_packages to specify a return type of None.
Refactor MTP model initialization and prediction methods to include type hints and docstrings.
Added type hints and docstrings for better clarity.
@tori-da-vi

Copy link
Copy Markdown
Contributor Author

This PR adds NumPy-style docstrings for the AIM module.

Changes:

  • Added OpenCDA-style docstrings
  • Added type hints
  • Improved readability and maintainability

No functional changes.

@il3241ya
il3241ya self-requested a review February 24, 2026 05:03
@il3241ya il3241ya added 1549 documentation Improvements or additions to documentation AIM labels Feb 24, 2026
@il3241ya il3241ya changed the title Aim docstrings [docs] Docstrings for aim models Feb 24, 2026
Comment thread AIM/registry.py Outdated
Comment thread AIM/registry.py Outdated
il3241ya
il3241ya previously approved these changes Mar 24, 2026
@il3241ya
il3241ya merged commit 3a4da93 into CAVISE:main Mar 30, 2026
7 checks passed
Haralishev77 added a commit that referenced this pull request Jul 21, 2026
* Refactor ModelRegistry with type hints and docstrings

Enhance type hints and docstrings for clarity.

* Enhance AIMModel with type hints and docstrings

Updated type hints and added docstrings for clarity.

* Add type annotations to public API functions

Added type annotations for get_model and list_models.

* Specify return type for _discover_model_packages function

Updated the function signature of _discover_model_packages to specify a return type of None.

* Enhance MTP model with type hints and docstrings

Refactor MTP model initialization and prediction methods to include type hints and docstrings.

* Add docstring for MTP model package

* Enhance GNN_mtl_gnn with type hints and docstrings

Added type hints and docstrings for better clarity.

* Add type import

* Remove unused import of None from typing

* Remove unused import statement from GNN_mtl_gnn.py

* Refactor KeyError raising for unknown model

* Add missing newline at end of aim_model.py

* Refactor code for consistency and readability

* Refactor forward method for cleaner syntax

* Refactor forward method for improved readability

* Refactor model.py for improved readability

* Fix missing newline at end of __init__.py

* Refactor get_model and list_models assignments

* Improve predict method formatting

Refactor predict method signature for better readability.

* Refactor ModelRegistry for type hinting improvements

* Refactor code for improved readability

* Refactor KeyError raising for unknown model name

---------

Co-authored-by: Grigoriy Khoroshilov <101859570+Haralishev77@users.noreply.github.com>
meaning-0f-life pushed a commit to meaning-0f-life/OpenCDA that referenced this pull request Jul 25, 2026
* Refactor ModelRegistry with type hints and docstrings

Enhance type hints and docstrings for clarity.

* Enhance AIMModel with type hints and docstrings

Updated type hints and added docstrings for clarity.

* Add type annotations to public API functions

Added type annotations for get_model and list_models.

* Specify return type for _discover_model_packages function

Updated the function signature of _discover_model_packages to specify a return type of None.

* Enhance MTP model with type hints and docstrings

Refactor MTP model initialization and prediction methods to include type hints and docstrings.

* Add docstring for MTP model package

* Enhance GNN_mtl_gnn with type hints and docstrings

Added type hints and docstrings for better clarity.

* Add type import

* Remove unused import of None from typing

* Remove unused import statement from GNN_mtl_gnn.py

* Refactor KeyError raising for unknown model

* Add missing newline at end of aim_model.py

* Refactor code for consistency and readability

* Refactor forward method for cleaner syntax

* Refactor forward method for improved readability

* Refactor model.py for improved readability

* Fix missing newline at end of __init__.py

* Refactor get_model and list_models assignments

* Improve predict method formatting

Refactor predict method signature for better readability.

* Refactor ModelRegistry for type hinting improvements

* Refactor code for improved readability

* Refactor KeyError raising for unknown model name

---------

Co-authored-by: Grigoriy Khoroshilov <101859570+Haralishev77@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1549 AIM documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants