Skip to content

Commit

Permalink
change/rename imports
Browse files Browse the repository at this point in the history
  • Loading branch information
japdubengsub committed Feb 18, 2025
1 parent cbe1254 commit 45ee2f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sdks/python/src/opik/evaluation/metrics/base_metric.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import abc
from typing import Any, List, Union

from opik import config as opik_config, track as track_decorator
import opik
from opik import config as opik_config
from ..metrics import score_result


Expand Down Expand Up @@ -39,8 +40,8 @@ def __init__(self, name: str, track: bool = True) -> None:
config = opik_config.OpikConfig()

if track and opik_config.is_misconfigured(config) is False:
self.score = track_decorator(name=self.name)(self.score) # type: ignore
self.ascore = track_decorator(name=self.name)(self.ascore) # type: ignore
self.score = opik.track(name=self.name)(self.score) # type: ignore
self.ascore = opik.track(name=self.name)(self.ascore) # type: ignore

@abc.abstractmethod
def score(
Expand Down

0 comments on commit 45ee2f3

Please sign in to comment.