diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-03-28 16:50:09 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-03-28 16:50:09 +0200 |
commit | 4b3ff326b8f97b5f849b8619d984d2e2d50ab9b9 (patch) | |
tree | 84f9f944f328b5f32f8398563f85b6497d3b74e2 /lib/dfatool.py | |
parent | f5690d1ca3042fcbbe92ebc7f4fcc2785e6cfee3 (diff) |
export plot data for pgfplots (experimental and ugly)
Diffstat (limited to 'lib/dfatool.py')
-rwxr-xr-x | lib/dfatool.py | 5 |
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: |