-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing docstrings #40
Conversation
@mspada @kapil-agnihotri let me take care of fixing the tests before starting your review. Failures unexpected. |
@mspada @kapil-agnihotri tests are fixed, you can start reviewing it. |
@mspada, neither Kapil nor I have been able to run pdoc successfully. Would you try it once? |
@Flaminietta I tried to run pdoc, but also in my case was not successful... |
mcda/configuration/config.py
Outdated
|
||
Methods: | ||
__init__(input_config: dict): instantiate a configuration object. | ||
_validate(input_config, valid_keys, str_values, int_values, list_values, dict_values): validate the input configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line will give linting error. Seems to be crossing 120.
Did you run linting on this branch?
mcda/mcda_functions/aggregation.py
Outdated
and estimates the scores over the indicators, per alternative. | ||
Weighted-sum or additive aggregation function gets as input the normalized values of the indicators in a matrix | ||
and estimates the scores over the indicators, per alternative. The norm_indicators has | ||
shape = (no.alternatives x num. indicators) and the returned scores has length = num. of alternatives. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no.
?
num. indicators
? is space indented? Either something similar to length = num. of alternatives.
?
mcda/mcda_without_robustness.py
Outdated
Aggregate the normalized indicators using the specified aggregation method. | ||
|
||
Parameters: | ||
- normalized_indicators: a dictionary containing the normalized values of each indicator per normalization method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linting
mcda/utils/utils_for_main.py
Outdated
:param num_weights: int | ||
:param num_runs: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following your standards want to specify the type?
|
||
``` | ||
|
||
This example initializes an Aggregation object with the given weights and calls the specified aggregation method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All fine.
Add missing doctrings to non-private function and non-static methods (that receive only a brief description).
Some docstrings include a running example but not all.
Add minor refinements to fulfill consistency of adopted standards.