Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Feb 28, 2024
1 parent eb1c573 commit db74f40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/asammdf/gui/dialogs/error_dialog.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

from PySide6 import QtCore, QtGui, QtWidgets

from ..ui.error_dialog import Ui_ErrorDialog
Expand All @@ -6,7 +8,7 @@
class ErrorDialog(Ui_ErrorDialog, QtWidgets.QDialog):
def __init__(self, title, message, trace, *args, **kwargs):
remote = kwargs.pop("remote", False)
timeout = kwargs.pop("timeout", 120)
timeout = kwargs.pop("timeout", int(os.environ.get("ASAMMDF_ERROR_DIALOG_TIMEOUT", 90)))
logger = kwargs.pop("logger", None)

super().__init__(*args, **kwargs)
Expand Down
1 change: 0 additions & 1 deletion src/asammdf/gui/widgets/mdi_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -3851,7 +3851,6 @@ def set_cursor(self, widget, pos):
wid.set_timestamp(pos)

def set_x_range(self, widget, x_range):
print("SET X RANGE", widget, x_range)
if not self.subplots_link:
return

Expand Down
6 changes: 5 additions & 1 deletion src/asammdf/gui/widgets/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,11 @@ def keyPressEvent(self, event):
if not selected_items:
return

info = json.loads(info)
try:
info = json.loads(info)
except:
return

if info["type"] == "channel":
info["color"] = fn.mkColor(info["color"])

Expand Down

0 comments on commit db74f40

Please sign in to comment.