Merge branch 'develop' of ariadne.geophysik.rub.de:/data/git/pylot into develop

This commit is contained in:
Ludger Küperkoch 2019-10-28 16:43:11 +01:00
commit ceb33bf59e
2 changed files with 6 additions and 0 deletions

View File

@ -3511,6 +3511,9 @@ class MainWindow(QMainWindow):
self.project = Project.load(fnm)
if hasattr(self.project, 'parameter'):
if self.project.parameter:
# do this step to update default parameter on older PyLoT projects
self.project.parameter.reinit_default_parameters()
self._inputs = self.project.parameter
self.updateFilteroptions()
# added for backwards compatibility with older events not having a 'dirty' attribute

View File

@ -194,6 +194,9 @@ class PylotParameter(object):
all_names += self.get_special_para_names()['quality']
return all_names
def reinit_default_parameters(self):
self.__init_default_paras()
@staticmethod
def check_range(value, max_value, min_value):
"""