Skip to content

Commit

Permalink
Use super() to make EvaluatorBase attributes available
Browse files Browse the repository at this point in the history
  • Loading branch information
orviz committed Oct 18, 2024
1 parent 822a69f commit d2ae47f
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions plugins/epos/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,12 @@ class Plugin(EvaluatorBase):
"""

name = "epos"

def __init__(self, item_id, oai_base=None, lang="en", config=None, name="epos"):
# FIXME: Disable calls to parent class until a EvaluatorBase class is implemented
# super().__init__(item_id, oai_base, lang, self.name)
# global _
# _ = super().translation()

self.name = name
self.item_id = item_id
self.api_endpoint = oai_base
self.config = config
super().__init__(
item_id, oai_base=oai_base, lang=lang, config=config, name=name
)

self.api_endpoint = self.oai_base

logger.debug("Using FAIR-EVA's plugin: %s" % self.name)

Expand Down

0 comments on commit d2ae47f

Please sign in to comment.