summaryrefslogtreecommitdiff
path: root/lib/dfatool.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dfatool.py')
-rwxr-xr-xlib/dfatool.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/dfatool.py b/lib/dfatool.py
index 9653017..3048f43 100755
--- a/lib/dfatool.py
+++ b/lib/dfatool.py
@@ -696,6 +696,14 @@ def _try_fits(by_param, state_or_tran, model_attribute, param_index, safe_functi
median_measures = aggregate_measures(np.median(Y), Y)
ref_results['median'].append(median_measures['rmsd'])
+ if not len(ref_results['mean']):
+ # Insufficient data for fitting
+ return {
+ 'best' : None,
+ 'best_rmsd' : np.inf,
+ 'results' : results,
+ }
+
best_fit_val = np.inf
best_fit_name = None
for function_name, result in raw_results.items():