Spaces:
Runtime error
Runtime error
Download coefficients.py from mrcryptsie/recommended_algo_orienty: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/spaces/mrcryptsie/recommended_algo_orienty/resolve/main/coefficients.py
- Command line
-
hf download hf://spaces/mrcryptsie/recommended_algo_orienty/coefficients.py
-
curl -L -o coefficients.py https://huggingface.co/spaces/mrcryptsie/recommended_algo_orienty/resolve/main/coefficients.py
365 Bytes
| class Coefficients: | |
| def __init__(self, serie, matieres): | |
| self.serie = serie | |
| self.matieres = matieres | |
| def get_coefficient(self, matiere): | |
| if matiere not in self.matieres: | |
| raise ValueError(f"Matière '{matiere}' non trouvée dans les coefficients pour la série {self.serie}.") | |
| return self.matieres.get(matiere, 1) |