diff --git a/source/MulensModel/mulensdata.py b/source/MulensModel/mulensdata.py index e5de250a..e687c4aa 100644 --- a/source/MulensModel/mulensdata.py +++ b/source/MulensModel/mulensdata.py @@ -186,8 +186,10 @@ def _get_name(self): """extract the name of dataset""" if 'label' in self.plot_properties: name = self.plot_properties['label'] - else: + elif self._file_name is not None: name = self._file_name + else: + name = 'Unlabeled Dataset' return name diff --git a/source/MulensModel/version.py b/source/MulensModel/version.py index 326b86ff..4c813929 100644 --- a/source/MulensModel/version.py +++ b/source/MulensModel/version.py @@ -1 +1 @@ -__version__ = "2.19.0" +__version__ = "2.19.1"