Skip to content

Commit

Permalink
removed all unused imported packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathyhjj committed Apr 23, 2024
1 parent e96f184 commit b56ad7a
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 11 deletions.
5 changes: 1 addition & 4 deletions src/firefly/component_selector.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import asyncio
import logging
from collections import OrderedDict
from pprint import pprint
from functools import lru_cache

from qasync import asyncSlot, QThreadExecutor
import qtawesome as qta
from ophyd import Device, EpicsMotor, PositionerBase, Signal, sim, do_not_wait_for_lazy_connection
from qtpy.QtCore import Qt
from ophyd import Device, EpicsMotor, PositionerBase, Signal, do_not_wait_for_lazy_connection
from qtpy.QtGui import QFont, QStandardItem, QStandardItemModel
from qtpy.QtWidgets import (
QComboBox,
Expand All @@ -19,7 +17,6 @@
QVBoxLayout,
QWidget,
)
from haven import registry

from .application import FireflyApplication

Expand Down
2 changes: 1 addition & 1 deletion src/firefly/kb_mirrors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from firefly.slits import SlitsDisplay
from haven.instrument import mirrors
# from haven.instrument import mirrors


class KBMirrorsDisplay(SlitsDisplay):
Expand Down
1 change: 0 additions & 1 deletion src/firefly/plans/xafs_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
merge_ranges,
wavenumber_to_energy,
)
from haven.plans.energy_scan import energy_scan
log = logging.getLogger(__name__)

#TODO solve Python decimal
Expand Down
2 changes: 0 additions & 2 deletions src/firefly/tests/test_component_selector.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import asyncio
from pprint import pprint
from unittest import mock

import pytest
from ophyd import Component as Cpt
from ophyd import Device, EpicsMotor, sim
from qtpy.QtCore import Qt

from firefly.component_selector import (
ComponentComboBoxModel,
Expand Down
1 change: 0 additions & 1 deletion src/haven/energy_ranges.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from dataclasses import dataclass
import math

import numpy as np
import pint
Expand Down
2 changes: 1 addition & 1 deletion src/haven/instrument/ion_chamber.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import Dict, Generator, Optional

import numpy as np
import pint
# import pint
from aioca import caget, CANothing
from apstools.devices import SRS570_PreAmplifier
from apstools.devices.srs570_preamplifier import (
Expand Down
2 changes: 1 addition & 1 deletion src/haven/tests/test_energy_ranges.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
import logging
import unittest
# import unittest

import numpy as np

Expand Down

0 comments on commit b56ad7a

Please sign in to comment.