fix overhaul cost decay base

main
Cizz22 11 months ago
parent 5b57ff58e6
commit 42e1511672

@ -17,7 +17,7 @@ from src.overhaul_scope.service import get as get_scope
from .schema import CalculationResultsRead from .schema import CalculationResultsRead
def get_overhaul_cost_by_time_chart(overhaul_cost: float, days: int,numEquipments:int ,decay_base: float = 1.1) -> np.ndarray: def get_overhaul_cost_by_time_chart(overhaul_cost: float, days: int,numEquipments:int ,decay_base: float = 0.3) -> np.ndarray:
if overhaul_cost < 0: if overhaul_cost < 0:
raise ValueError("Overhaul cost cannot be negative") raise ValueError("Overhaul cost cannot be negative")
if days <= 0: if days <= 0:

Loading…
Cancel
Save