Skip to content

Commit 6a069d2

Browse files
committed
Move path of file
1 parent db42f6f commit 6a069d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kadi/commands/validate.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import functools
1313
import logging
14+
import os
1415
from abc import ABC
1516
from collections import defaultdict
1617
from dataclasses import dataclass
@@ -730,8 +731,9 @@ class ValidateACISStatePower(ValidateSingleMsid):
730731
def __init__(self, stop=None, days: float = 14, no_exclude: bool = False):
731732
from joblib import load
732733

734+
model_path = Path(os.environ["SKA"]) / "data/kadi/dpa_power_model.joblib"
733735
super().__init__(stop=stop, days=days, no_exclude=no_exclude)
734-
self.model, self.scaler_X, self.scaler_y = load("dpa_power_model.joblib")
736+
self.model, self.scaler_X, self.scaler_y = load(model_path)
735737

736738
@functools.cached_property
737739
def states(self):

0 commit comments

Comments
 (0)