Skip to content
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

Clustering flag #151

Merged
merged 8 commits into from
Apr 29, 2024
Merged

Clustering flag #151

merged 8 commits into from
Apr 29, 2024

Conversation

dimkarakostas
Copy link
Member

All Submissions:

  • Have you followed the guidelines in our Contributing documentation?
  • Have you verified that there aren't any other open Pull Requests for the same update/change?
  • Does the Pull Request pass all tests?

Description

Adds a parameter in the configuration file that allows the user to enable/disable clustering.

Copy link
Member

@LadyChristina LadyChristina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall but I think it's worth making the variable changes I mentioned in analyze.py

@@ -21,7 +21,16 @@ def analyze(projects, aggregated_data_filename, output_dir):
"""
logging.info('Calculating metrics on aggregated data..')
metrics = hlp.get_metrics_config()
metric_names = list(metrics.keys())
metric_values = []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend renaming this (perhaps to metric_params) to distinguish from the variable we use later to store the results (which currently has the same name). It might also be more useful to make it a dict?

@@ -21,7 +21,16 @@ def analyze(projects, aggregated_data_filename, output_dir):
"""
logging.info('Calculating metrics on aggregated data..')
metrics = hlp.get_metrics_config()
metric_names = list(metrics.keys())
metric_values = []
metric_names = []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable is not really necessary now that we have the one defined above too. I would recommend removing this one and having f'{key}={val}' as the first item for the metric_values entries when there is an arg, and then accessing the names from there when needed

@LadyChristina LadyChristina merged commit 4484086 into main Apr 29, 2024
1 check passed
@LadyChristina LadyChristina deleted the clustering_flag branch April 29, 2024 12:43
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