diff --git a/nexus/ChannelSelectDialog.py b/nexus/ChannelSelectDialog.py index 572c46adb6702ba22438ef8179885599443fa5a0..e3c8d940d72839eb79e51dfcee98f95f072e743a 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 d361a01e3d6564029603c58347651723ebd5ec64..340bb38f8515a7ff347c98dd8eb9831efdd0f017 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 340ede7d64f1f57b96f8e7ee68fde5159f85d189..fcc0f43fce854a8579a1205d5c3376f165ac476f 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 acc5cf8cdf7b02957cd4dcbe8293281316bd9923..da5bd45d4e46ce12210a675e7dc8a2037ea10c8a 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 49692fae8bc40ff390bb1692f447375e6ba570da..349441b8e326ea8d9aea6ea16f28026f54550c94 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 c71617bbc94f8947b412239ebcff6b6fc536176c..df44c73f66b4ed94d4d14d7d191a05666ee54b1a 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