Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -895,11 +895,7 @@ class NutrientCalculator:
|
|
895 |
if not candidates:
|
896 |
raise ValueError(f"Нет удобрений для элемента {element}")
|
897 |
|
898 |
-
|
899 |
-
for candidate in candidates:
|
900 |
-
share = abs(candidate['weight']) / total_weight # Используем модуль веса
|
901 |
-
ppm_to_apply = needed * share
|
902 |
-
self._apply(candidate['name'], element, ppm_to_apply)
|
903 |
|
904 |
def calculate_ec(self):
|
905 |
return round(self.total_ec, 2)
|
|
|
895 |
if not candidates:
|
896 |
raise ValueError(f"Нет удобрений для элемента {element}")
|
897 |
|
898 |
+
|
|
|
|
|
|
|
|
|
899 |
|
900 |
def calculate_ec(self):
|
901 |
return round(self.total_ec, 2)
|