inverter test: Mock SelfConsumptionProbabilityInterpolator

This commit is contained in:
Dominique Lasserre
2024-12-29 20:43:20 +01:00
parent e8a47af04e
commit b386c4be70
2 changed files with 75 additions and 27 deletions

View File

@@ -10,7 +10,6 @@ from scipy.interpolate import RegularGridInterpolator
class SelfConsumptionPropabilityInterpolator:
def __init__(self, filepath: str | Path):
self.filepath = filepath
# self.interpolator = None
# Load the RegularGridInterpolator
with open(self.filepath, "rb") as file:
self.interpolator: RegularGridInterpolator = pickle.load(file)