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 May 22, 2024
1 parent 5dbdbc4 commit a2bf8d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions reflectivity_ui/interfaces/data_handling/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
import string




# Constants
h = 6.626e-34 # m^2 kg s^-1
m = 1.675e-27 # kg
Expand Down Expand Up @@ -85,6 +83,7 @@ class Instrument(object):
legacy_search_template = "/SNS/REF_M/*/data/REF_M_%s"
# Option to use the slow flipper logs rather than the Analyzer/Polarizer logs
USE_SLOW_FLIPPER_LOG = False

def __init__(self):
# Filtering
self.pol_state = "PolarizerState"
Expand Down
4 changes: 4 additions & 0 deletions test/unit/reflectivity_ui/interfaces/test_data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
from reflectivity_ui.interfaces.configuration import Configuration
import reflectivity_ui.interfaces.data_handling.data_manipulation as dm
from reflectivity_ui.interfaces.data_handling.instrument import Instrument

# 3rd-party imports
import pytest


@pytest.fixture()
def setup_method():
Instrument.USE_SLOW_FLIPPER_LOG = True
yield
Instrument.USE_SLOW_FLIPPER_LOG = False


class TestDataManagerTest(object):
@pytest.mark.datarepo
def test_manager(self, data_server, setup_method):
Expand Down

0 comments on commit a2bf8d1

Please sign in to comment.