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

Fix Processor._customize_analyses #581

Merged
merged 2 commits into from
Oct 24, 2022
Merged

Fix Processor._customize_analyses #581

merged 2 commits into from
Oct 24, 2022

Conversation

odashi
Copy link
Contributor

@odashi odashi commented Oct 24, 2022

Overview

This PR restores the previous behavior in Processor._customize_analyses.

Details

Processor._customize_analyses was changed resently to "add" given metrics to default metrics, but the original behavior was "replace" it with the given metrics. This change restores the original behavior.
This change also introduces MetricConfig.replace_languages and AnalysisLevel.replace_metric_configs functions, which creates a new object by copying self with replacing several members.

References

Blocked by

  • NA

@neubig
Copy link
Contributor

neubig commented Oct 24, 2022

Looks like there is a type-related error on Python 3.8, but I can take a look after that.

@odashi
Copy link
Contributor Author

odashi commented Oct 24, 2022

@neubig It was resolved.

@odashi odashi merged commit 6dd24ee into main Oct 24, 2022
@odashi odashi deleted the fix-customize-analysis branch October 24, 2022 14:27
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.

4 participants