From 1ffb7226d9c8a4c944f840a3fb84dc9a87faf80e Mon Sep 17 00:00:00 2001 From: Cizz22 Date: Mon, 3 Feb 2025 11:26:48 +0700 Subject: [PATCH] fix overhaul cost decay base --- src/calculation_time_constrains/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calculation_time_constrains/service.py b/src/calculation_time_constrains/service.py index 10998ec..8930eb0 100644 --- a/src/calculation_time_constrains/service.py +++ b/src/calculation_time_constrains/service.py @@ -17,7 +17,7 @@ from src.overhaul_scope.service import get as get_scope from .schema import CalculationResultsRead -def get_overhaul_cost_by_time_chart(overhaul_cost: float, days: int,numEquipments:int ,decay_base: float = 0.3) -> np.ndarray: +def get_overhaul_cost_by_time_chart(overhaul_cost: float, days: int,numEquipments:int ,decay_base: float = 1.01) -> np.ndarray: if overhaul_cost < 0: raise ValueError("Overhaul cost cannot be negative") if days <= 0: