minor bug fixes
This commit is contained in:
parent
2c188432a1
commit
29cf978782
@ -8,16 +8,13 @@
|
||||
Edited for use in PyLoT
|
||||
JG, igem, 01/2022
|
||||
"""
|
||||
<<<<<<< HEAD
|
||||
|
||||
import os
|
||||
import argparse
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
=======
|
||||
import glob
|
||||
|
||||
>>>>>>> 83ba63a3fdd8ad0a212333928cfcd6f45fcb5baa
|
||||
from obspy.core.event import read_events
|
||||
from pyproj import Proj
|
||||
|
||||
|
@ -90,6 +90,7 @@ class TextLogWidget(QtWidgets.QTextEdit):
|
||||
def __init__(self, parent, highlight_input=False):
|
||||
super(TextLogWidget, self).__init__(parent)
|
||||
self.highlight_input = highlight_input
|
||||
self.append('DUMMY TEXT\n')
|
||||
|
||||
def write(self, text):
|
||||
self.append(text)
|
||||
@ -107,7 +108,9 @@ class LogWidget(QtWidgets.QWidget):
|
||||
self.setMinimumHeight(600)
|
||||
|
||||
self.stdout = TextLogWidget(self)
|
||||
self.stdout.write('DUMMY TEXT 2\n')
|
||||
self.stderr = TextLogWidget(self, highlight_input=True)
|
||||
self.stderr.write('DUMMY TEXT 2\n')
|
||||
self.stderr.highlight.connect(self.active_error)
|
||||
|
||||
self.tabs = QTabWidget()
|
||||
@ -221,6 +224,7 @@ class AddMetadataWidget(QWidget):
|
||||
self.show()
|
||||
# self.__test__()
|
||||
|
||||
# TODO: what is this for? Remove?
|
||||
def __test__(self):
|
||||
self.add_item(r'/rscratch/minos14/marcel/git/pylot/tests')
|
||||
self.add_item(r'/rscratch/minos14/marcel/git/pylot/inputs')
|
||||
|
Loading…
Reference in New Issue
Block a user