Spaces:
Sleeping
Sleeping
Update app/predict_distributions.py (#17)
Browse files- Update app/predict_distributions.py (0c14e59302a1dda2430ca96bfbe5cfb2836a1a96)
Co-authored-by: Axel Rousseau <axelrvite@users.noreply.huggingface.co>
app/predict_distributions.py
CHANGED
|
@@ -17,6 +17,7 @@ executor = ThreadPoolExecutor(max_workers=4)
|
|
| 17 |
def run_fit(temp_filepath, method):
|
| 18 |
try:
|
| 19 |
fit = Fit_IV(temp_filepath, separateur=",", type_fit=method, Plot=False)
|
|
|
|
| 20 |
return fit.params_fit
|
| 21 |
except Exception:
|
| 22 |
return None
|
|
|
|
| 17 |
def run_fit(temp_filepath, method):
|
| 18 |
try:
|
| 19 |
fit = Fit_IV(temp_filepath, separateur=",", type_fit=method, Plot=False)
|
| 20 |
+
ssd =fit.ssd_fit
|
| 21 |
return fit.params_fit
|
| 22 |
except Exception:
|
| 23 |
return None
|