summaryrefslogtreecommitdiff
path: root/lib/dfatool.py
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-03-28 16:50:09 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-03-28 16:50:09 +0200
commit4b3ff326b8f97b5f849b8619d984d2e2d50ab9b9 (patch)
tree84f9f944f328b5f32f8398563f85b6497d3b74e2 /lib/dfatool.py
parentf5690d1ca3042fcbbe92ebc7f4fcc2785e6cfee3 (diff)
export plot data for pgfplots (experimental and ugly)
Diffstat (limited to 'lib/dfatool.py')
-rwxr-xr-xlib/dfatool.py5
1 files changed, 5 insertions, 0 deletions
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: