Skip to content

Commit

Permalink
HDF5 was shown two times
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Nov 11, 2024
1 parent 9f456cb commit 52ded44
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 23 deletions.
7 changes: 0 additions & 7 deletions src/asammdf/gui/widgets/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,6 @@ def __init__(

formats = ["MDF", "ASC", "CSV"]

try:
from h5py import File as HDF5

formats.append("HDF5")
except ImportError:
pass

try:
from hdf5storage import savemat

Expand Down
7 changes: 0 additions & 7 deletions src/asammdf/gui/widgets/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,6 @@ def __init__(

formats = ["MDF", "ASC", "CSV"]

try:
from h5py import File as HDF5

formats.append("HDF5")
except ImportError:
pass

try:
from hdf5storage import savemat

Expand Down
2 changes: 1 addition & 1 deletion test/asammdf/gui/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class DragAndDrop

import pyqtgraph
from PySide6 import QtCore, QtGui, QtTest, QtWidgets
from asammdf import mdf

from asammdf import mdf
from asammdf.gui.utils import excepthook

if sys.platform == "win32":
Expand Down
8 changes: 3 additions & 5 deletions test/asammdf/gui/widgets/plot/test_PlotWidget_PushButtons.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#!/usr/bin/env python
import shutil
from unittest import mock

from PySide6 import QtCore, QtTest
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QPushButton as QBtn, QTreeWidgetItemIterator, QMessageBox
from PySide6.QtWidgets import QPushButton as QBtn
from PySide6.QtWidgets import QTreeWidgetItemIterator

from asammdf.gui.utils import COLORS, BLUE
from asammdf.gui.utils import BLUE, COLORS
from test.asammdf.gui.test_base import Pixmap
from test.asammdf.gui.widgets.test_BasePlotWidget import TestPlotWidget

Expand Down
2 changes: 1 addition & 1 deletion test/asammdf/gui/widgets/test_BaseFileWidget.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import json
import os
import pathlib
import shutil
from random import randint
import shutil
from unittest import mock

from PySide6 import QtCore, QtTest, QtWidgets
Expand Down
2 changes: 0 additions & 2 deletions test/asammdf/gui/widgets/test_BasePlotWidget.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import pathlib
import shutil
import threading as td
from unittest import mock

Expand Down

0 comments on commit 52ded44

Please sign in to comment.