Merge branch 'develop' of ariadne.geophysik.rub.de:/data/git/pylot into develop
This commit is contained in:
commit
ceb33bf59e
3
PyLoT.py
3
PyLoT.py
@ -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
|
||||
|
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user