Skip to content

Commit

Permalink
Black and isort.
Browse files Browse the repository at this point in the history
  • Loading branch information
canismarko committed Mar 6, 2024
1 parent 033d916 commit fc722f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 6 additions & 4 deletions src/firefly/iocs.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import json

from pydm.widgets import PyDMEmbeddedDisplay
from qtpy import QtWidgets
import json

from firefly import display
import haven
from firefly import display


class IocsDisplay(display.FireflyDisplay):
_ioc_displays = []

# def __init__(self, config=None):
# """Parameters:
# ===========

# config:
# Configuration mapping like that created by
# ``haven.load_config()``, which is used by default. Useful
Expand All @@ -30,7 +32,7 @@ def customize_ui(self):
# Add embedded displays for all the ion chambers
self._ioc_displays = []
config = haven.load_config()
for idx, (name, prefix) in enumerate(config.get('iocs', {}).items()):
for idx, (name, prefix) in enumerate(config.get("iocs", {}).items()):
# Add a separator
if idx > 0:
line = QtWidgets.QFrame(self.ui)
Expand Down
3 changes: 0 additions & 3 deletions src/firefly/tests/test_iocs_display.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import pytest

from firefly.iocs import IocsDisplay


dummy_config = {"iocs"}


Expand Down

0 comments on commit fc722f7

Please sign in to comment.