From 4b3ff326b8f97b5f849b8619d984d2e2d50ab9b9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 28 Mar 2018 16:50:09 +0200 Subject: export plot data for pgfplots (experimental and ugly) --- lib/dfatool.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/dfatool.py') diff --git a/lib/dfatool.py b/lib/dfatool.py index a591be3..17e7014 100755 --- a/lib/dfatool.py +++ b/lib/dfatool.py @@ -984,6 +984,11 @@ class EnergyModel: return self._parameter_names.index(param_name) return len(self._parameter_names) + int(param_name) + def param_name(self, param_index): + if param_index < len(self._parameter_names): + return self._parameter_names[param_index] + return str(param_index) + def get_fitted(self): if 'fitted_model_getter' in self.cache and 'fitted_info_getter' in self.cache: -- cgit v1.2.3