From c4b257e3b8d0eb7cf5d7e41057b1f443cba494da Mon Sep 17 00:00:00 2001
From: Maeva Pourpoint <maeva@passcal.nmt.edu>
Date: Fri, 15 Mar 2024 11:53:09 -0600
Subject: [PATCH] Clean up imports

---
 nexus/ChannelSelectDialog.py |  5 ++---
 nexus/NRLWizard.py           |  2 +-
 nexus/inv_model.py           |  5 ++---
 nexus/inventorymodel.py      |  5 +----
 nexus/nexus.py               |  1 -
 nexus/obspyImproved.py       | 11 ++---------
 6 files changed, 8 insertions(+), 21 deletions(-)

diff --git a/nexus/ChannelSelectDialog.py b/nexus/ChannelSelectDialog.py
index 572c46ad..e3c8d940 100644
--- a/nexus/ChannelSelectDialog.py
+++ b/nexus/ChannelSelectDialog.py
@@ -6,14 +6,13 @@ Lloyd Carothers
 IRIS/PASSCAL
 """
 
-import sys
 import os
 
 from PySide6.QtCore import Qt
 from PySide6.QtGui import QFontMetrics
 from PySide6.QtUiTools import loadUiType
-from PySide6.QtWidgets import (QApplication, QTableWidgetItem,
-                               QAbstractItemView,  QHeaderView)
+from PySide6.QtWidgets import (QTableWidgetItem, QAbstractItemView,
+                               QHeaderView)
 
 from .obspyImproved import utc_to_str
 
diff --git a/nexus/NRLWizard.py b/nexus/NRLWizard.py
index d361a01e..340bb38f 100644
--- a/nexus/NRLWizard.py
+++ b/nexus/NRLWizard.py
@@ -5,7 +5,7 @@ Lloyd Carothers
 Qt Wizard for selecting responses from the IRIS NRL
 '''
 
-from PySide6 import QtCore, QtGui, QtWidgets
+from PySide6 import QtWidgets
 
 from obspy.clients.nrl import NRL
 
diff --git a/nexus/inv_model.py b/nexus/inv_model.py
index 340ede7d..fcc0f43f 100644
--- a/nexus/inv_model.py
+++ b/nexus/inv_model.py
@@ -4,10 +4,9 @@
 """
 Channel Widget model play
 """
-import sys
 
-from PySide6 import QtCore, QtGui, QtWidgets
-from obspy import Inventory, read_inventory
+from PySide6 import QtCore
+from obspy import Inventory
 
 
 class InventoryModel(QtCore.QAbstractListModel):
diff --git a/nexus/inventorymodel.py b/nexus/inventorymodel.py
index acc5cf8c..da5bd45d 100644
--- a/nexus/inventorymodel.py
+++ b/nexus/inventorymodel.py
@@ -6,10 +6,7 @@ Inventory Model PyQt5
 Lloyd Carothers
 """
 
-import sys
-
-from PySide6 import QtCore, QtGui, QtWidgets
-import obspy
+from PySide6 import QtCore
 
 class Node(object):
     def __init__(self, name, inv_object, parent=None):
diff --git a/nexus/nexus.py b/nexus/nexus.py
index 49692fae..349441b8 100755
--- a/nexus/nexus.py
+++ b/nexus/nexus.py
@@ -5,7 +5,6 @@
 Lloyd Carothers
 """
 
-from copy import deepcopy
 import os
 import sys
 import traceback
diff --git a/nexus/obspyImproved.py b/nexus/obspyImproved.py
index c71617bb..df44c73f 100644
--- a/nexus/obspyImproved.py
+++ b/nexus/obspyImproved.py
@@ -10,15 +10,8 @@ import os
 from obspy import read as obspy_read
 from obspy import Inventory
 from obspy import UTCDateTime
-from obspy.core.inventory import (
-    Network,
-    Station,
-    Channel,
-    Comment,
-    Site,
-    Equipment,
-    Response,
-    )
+from obspy.core.inventory import (Network, Station, Channel,
+                                  Site, Equipment)
 from obspy.io.mseed.core import _is_mseed
 from obspy.io.mseed import util
 
-- 
GitLab