Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 15, 2024
1 parent afaec32 commit 829a3bf
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions RefRed/calculations/check_list_run_compatibility_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
1: Direct beam data <class 'RefRed.calculations.lr_data.LRData'>
2: Reduction options <class 'RefRed.lconfigdataset.LConfigDataset'>
"""

# import logging
import RefRed.colors
from qtpy import QtCore, QtGui
Expand Down
1 change: 1 addition & 0 deletions RefRed/decorators.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'''
Module for useful decorators
'''

from qtpy import QtGui, QtCore, QtWidgets
from RefRed import WINDOW_TITLE
from functools import wraps
Expand Down
2 changes: 2 additions & 0 deletions RefRed/gui_handling/data_norm_spinboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class DataBackSpinbox(object):
entry_type
One of "back" or "back2", denoting the first or the second background ROI's
"""

parent = None

def __init__(self, parent: QWidget, entry_type: str = 'back'):
Expand Down Expand Up @@ -155,6 +156,7 @@ class NormBackSpinbox(object):
entry_type
One of "back" or "back2", denoting the first or the second background ROI's
"""

parent = None

def __init__(self, parent: QWidget, entry_type: str = "back"):
Expand Down
2 changes: 2 additions & 0 deletions RefRed/gui_handling/observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ class SpinBoxObserver:
QUANTUM : int
The minimum allowed change in value for any of the registered QSpinBox objects
"""

NAN: int = -1
QUANTUM: int = 1

@dataclass
class RegistryEntry:
r"""Helper class to encapsulate entries in the registry of SpinBoxObserver._registry"""

spin_box: QSpinBox
last_value: int

Expand Down
1 change: 1 addition & 0 deletions RefRed/reduction/individual_reduction_settings_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
is saved if it's not used here. It creates confusion as to where we should
keep this information.
"""

# standard imports
from typing import Any, List, Optional

Expand Down
1 change: 1 addition & 0 deletions RefRed/sf_calculator/lr_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Notes from review: This class does a subset of what is done in calculations.lr_data.
This code is probably not needed.
"""

from mantid.simpleapi import Rebin
import numpy as np
import logging
Expand Down
1 change: 1 addition & 0 deletions RefRed/sf_calculator/sf_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Scaling factor calculator
TODO: This need major cleanup
"""

import sys
import os
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions RefRed/status_message_handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
TODO: refactor this
"""

import sys
import time
from qtpy import QtCore
Expand Down
1 change: 1 addition & 0 deletions RefRed/tabledata.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

class TableDataColumIndex(Enum):
r"""Enumeration to associate each column index of a TableData instance with a word"""

LR_DATA = 0
LR_NORM = 1
LR_CONFIG = 2
Expand Down

0 comments on commit 829a3bf

Please sign in to comment.