-
Notifications
You must be signed in to change notification settings - Fork 2
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
Creating EvaluatorBase #257
Conversation
api/rda.py
Outdated
@@ -36,24 +36,22 @@ def wrapper(body, **kwargs): | |||
# Get the identifiers through a search query | |||
ids = [item_id] | |||
|
|||
# FIXME oai-pmh should be no different | |||
downstream_logger = evaluator.logger |
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.
downstream_logger = None
(evaluator
is not set)
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.
Done
Added changes to adapt EPOS plugin to |
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.
Where the list of config params should be loaded?
@@ -139,8 +139,8 @@ def __init__(self, item_id, oai_base=None, lang="en", config=None, name="epos"): | |||
) |
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.
The config loading is already included in EvalutorBase. Do you think it is better to trust in super() class or we should keep this loading on each plugins?
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.
yes, it makes sense to use super()
. . I'll make the change
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.
Commit 00fa1c89dc0553d91cf468d486ac00f7c278ebed allows to pass (*args, **kwargs) from the Plugin class so you don't need to provide the list of input args to super()
. In case you want to apply it to other plugins.
@ferag |
Do you think is it OK to use a general "api_endpoint" variable? |
sure. Last commit address this, but not tested all the plugins |
No description provided.