diff --git a/PyLoT.py b/PyLoT.py index de4c879f..7dab578d 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -1719,6 +1719,10 @@ class MainWindow(QMainWindow): self.dataPlot.setPermTextRight(wf_stat[status], wf_stat_color[status]) def check_plot_quantity(self): + """ + Check the amount of samples to be plotted and ask user to reduce the amount if it is too large. + :rtype: None + """ settings = QSettings() nth_sample = int(settings.value("nth_sample")) if settings.value("nth_sample") else 1 npts_max = 1e7 diff --git a/pylot/core/util/utils.py b/pylot/core/util/utils.py index 79872e31..a973f622 100644 --- a/pylot/core/util/utils.py +++ b/pylot/core/util/utils.py @@ -454,7 +454,8 @@ def getLogin(): :return: login ID :rtype: str """ - return os.getlogin() + import getpass + return getpass.getuser() def getOwner(fn):