From fb7615450b00ccf982cfc2d34130b718ae888a0b Mon Sep 17 00:00:00 2001 From: jenniferyee Date: Thu, 14 Dec 2023 09:46:50 -0500 Subject: [PATCH] Fixed bug for _get_name() if dataset is not named. --- source/MulensModel/mulensdata.py | 4 +++- source/MulensModel/version.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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"