set name of fit results manually; fix #138

This commit is contained in:
Dominik Demuth 2023-11-13 17:17:50 +01:00
parent 735896e68d
commit ae45ff2e55

View File

@ -171,6 +171,9 @@ class FitResult(Points):
self._model_name = name self._model_name = name
self._func = func self._func = func
# manually overwrite name to avoid '/' splits
self.name = name
@staticmethod @staticmethod
def _prepare_names(parameter: dict, modelname: str): def _prepare_names(parameter: dict, modelname: str):
pattern = re.compile(r'(\\?\w[\\\w .-]*(?:_{[\w\\ .-]})?)(\(\d+\))') pattern = re.compile(r'(\\?\w[\\\w .-]*(?:_{[\w\\ .-]})?)(\(\d+\))')