-
Notifications
You must be signed in to change notification settings - Fork 4
Creating EvaluatorBase #257
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
Conversation
api/rda.py
Outdated
| 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 |
ferag
left a comment
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?
| ) | ||
| self.internet_media_types_path = ast.literal_eval( | ||
| self.config["internet media types"]["path"] | ||
| ) |
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.