Consistent prefix for all PyLoT-output.
This commit is contained in:
parent
c9f0b126df
commit
9746913f8b
@ -648,7 +648,7 @@ class MainWindow(QMainWindow):
|
|||||||
for event in events:
|
for event in events:
|
||||||
path = event.path
|
path = event.path
|
||||||
eventname = path.split('/')[-1]
|
eventname = path.split('/')[-1]
|
||||||
filename = os.path.join(path, 'picks_'+eventname+fext)
|
filename = os.path.join(path, 'PyLoT_'+eventname+fext)
|
||||||
if os.path.isfile(filename):
|
if os.path.isfile(filename):
|
||||||
self.load_data(filename, draw=False, event=event, overwrite=True)
|
self.load_data(filename, draw=False, event=event, overwrite=True)
|
||||||
refresh=True
|
refresh=True
|
||||||
@ -992,7 +992,7 @@ class MainWindow(QMainWindow):
|
|||||||
print('warning: {0}'.format(e))
|
print('warning: {0}'.format(e))
|
||||||
directory = self.get_current_event_path()
|
directory = self.get_current_event_path()
|
||||||
eventname = self.get_current_event_name()
|
eventname = self.get_current_event_name()
|
||||||
filename = 'picks_'+eventname
|
filename = 'PyLoT_'+eventname
|
||||||
outpath = os.path.join(directory, filename)
|
outpath = os.path.join(directory, filename)
|
||||||
file_filter = "QuakeML file (*.xml);;VELEST observation file " \
|
file_filter = "QuakeML file (*.xml);;VELEST observation file " \
|
||||||
"format (*.cnv);;NonLinLoc observation file (*.obs)"
|
"format (*.cnv);;NonLinLoc observation file (*.obs)"
|
||||||
|
@ -1 +1 @@
|
|||||||
410fe-dirty
|
c9f0b-dirty
|
||||||
|
@ -95,7 +95,7 @@ class Data(object):
|
|||||||
def getPicksStr(self):
|
def getPicksStr(self):
|
||||||
picks_str = ''
|
picks_str = ''
|
||||||
for pick in self.get_evt_data().picks:
|
for pick in self.get_evt_data().picks:
|
||||||
picks_str += str(pick) + '\n'
|
picks_str += str(PyLoT) + '\n'
|
||||||
return picks_str
|
return picks_str
|
||||||
|
|
||||||
def getParent(self):
|
def getParent(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user