-
Notifications
You must be signed in to change notification settings - Fork 6
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
Clustering flag #151
Conversation
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.
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 = [] |
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 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 = [] |
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.
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
All Submissions:
Description
Adds a parameter in the configuration file that allows the user to enable/disable clustering.