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 f1c48e8 commit 3a9144c
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion reflectivity_ui/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
General settings
"""


# standard imports
import json
import os
Expand All @@ -13,6 +12,7 @@

class Settings(object):
r"""Singleton object containing the GUI settings as a dictionary"""

_instance = None

def __new__(cls, *args, **kwargs):
Expand Down
1 change: 1 addition & 0 deletions reflectivity_ui/interfaces/data_handling/data_info.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Meta-data information for MR reduction
"""

# pylint: disable=too-few-public-methods, wrong-import-position, too-many-instance-attributes, wrong-import-order

import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Methods used to process data, usually calling Mantid
"""

# pylint: disable=invalid-name, too-many-instance-attributes, line-too-long, multiple-statements, bare-except, protected-access, wrong-import-position

import sys
Expand Down
1 change: 1 addition & 0 deletions reflectivity_ui/interfaces/data_handling/data_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Loader for event nexus files.
Uses Mantid Framework
"""

# pylint: disable=invalid-name, too-many-instance-attributes, line-too-long, multiple-statements, bare-except, wrong-import-order, \
# too-many-locals, too-few-public-methods, wrong-import-position, too-many-public-methods

Expand Down
3 changes: 2 additions & 1 deletion reflectivity_ui/interfaces/data_handling/filepath.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Classes to handle string representations of sets of run numbers and absolute paths to data files
"""


# standard imports
import itertools
import operator
Expand All @@ -15,6 +14,7 @@ class RunNumbers(object):
A helper class to handle string representations of one or more run numbers. It translates from a
string representation to a list of run numbers, and viceversa
"""

merge_symbol = "+"
range_symbol = ":"

Expand Down Expand Up @@ -110,6 +110,7 @@ class FilePath(object):
NOTE: Paths are sorted
"""

merge_symbol = "+"

@classmethod
Expand Down
1 change: 1 addition & 0 deletions reflectivity_ui/interfaces/data_handling/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
that is instrument-specific and abstracts out how we obtain
information from the data file
"""

# pylint: disable=invalid-name, too-many-instance-attributes, line-too-long, bare-except


Expand Down
1 change: 0 additions & 1 deletion reflectivity_ui/interfaces/data_handling/peak_finding.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
All rights reserved.
"""


import math
import numpy as np

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Data processing workflow, taking results and writing them to files.
"""

# pylint: disable=bare-except, too-many-locals

import sys
Expand Down
1 change: 1 addition & 0 deletions reflectivity_ui/interfaces/event_handlers/widgets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Zoo for customized simple widgets
"""

from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QPushButton


Expand Down
1 change: 1 addition & 0 deletions reflectivity_ui/interfaces/reduction_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Dialog to select reduction options to choose which outputs are needed
and in which formats to write them.
"""

# pylint: disable=bare-except

import os
Expand Down
1 change: 1 addition & 0 deletions reflectivity_ui/interfaces/result_viewer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Dialog to show final reduced data.
"""

# pylint: disable=bare-except

import logging
Expand Down

0 comments on commit 3a9144c

Please sign in to comment.