Skip to content

Commit

Permalink
PEP8 fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
  • Loading branch information
Brianna Major committed Jan 9, 2025
1 parent 9b6226e commit 59a4f21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion hexrdgui/hexrd_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
from hexrdgui import utils
from hexrdgui.masking.constants import MaskType
from hexrdgui.singletons import QSingleton
from hexrdgui.utils.physics_package import ask_to_create_physics_package_if_missing
from hexrdgui.utils.physics_package import (
ask_to_create_physics_package_if_missing
)

import hexrdgui.resources.calibration
import hexrdgui.resources.indexing
Expand Down
1 change: 0 additions & 1 deletion hexrdgui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,6 @@ def _cancel():
# package options already. Just apply it now.
HexrdConfig().use_physics_package = b


def action_apply_absorption_correction_toggled(self, b):
if not b:
# Just turn it off and return
Expand Down
3 changes: 2 additions & 1 deletion hexrdgui/physics_package_manager_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def setup_connections(self):
lambda index, k=k: self.material_changed(index, k))
HexrdConfig().instrument_config_loaded.connect(
self.update_instrument_type)
HexrdConfig().detectors_changed.connect(self.initialize_detector_coatings)
HexrdConfig().detectors_changed.connect(
self.initialize_detector_coatings)

def initialize_detector_coatings(self):
# Reset detector coatings to make sure they're in sync w/ current dets
Expand Down

0 comments on commit 59a4f21

Please sign in to comment.