From ae45ff2e557dbc5635373319f8a41761659d8f97 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Mon, 13 Nov 2023 17:17:50 +0100 Subject: [PATCH] set name of fit results manually; fix #138 --- src/nmreval/fit/result.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nmreval/fit/result.py b/src/nmreval/fit/result.py index b460ad8..cd75ec0 100644 --- a/src/nmreval/fit/result.py +++ b/src/nmreval/fit/result.py @@ -171,6 +171,9 @@ class FitResult(Points): self._model_name = name self._func = func + # manually overwrite name to avoid '/' splits + self.name = name + @staticmethod def _prepare_names(parameter: dict, modelname: str): pattern = re.compile(r'(\\?\w[\\\w .-]*(?:_{[\w\\ .-]})?)(\(\d+\))')