Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Mar 7, 2024
1 parent 47a3ede commit 3dbdbae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions reduction/test/test_dead_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
mtd_api.config["default.facility"] = "SNS"
mtd_api.config["default.instrument"] = "REF_L"

from lr_reduction.utils import amend_config


def test_deadtime():
"""
Test the time-resolved reduction that uses a measured reference.
It is generally used at 30 Hz but it also works at 60 Hz.
"""
ws = mtd_api.Load("REF_L_198409")
with amend_config(data_dir=nexus_dir):
ws = mtd_api.Load("REF_L_198409")

algo = SingleReadoutDeadTimeCorrection()
algo.PyInit()
Expand All @@ -31,7 +34,8 @@ def test_deadtime_paralyzable():
Test the time-resolved reduction that uses a measured reference.
It is generally used at 30 Hz but it also works at 60 Hz.
"""
ws = mtd_api.Load("REF_L_198409")
with amend_config(data_dir=nexus_dir):
ws = mtd_api.Load("REF_L_198409")

algo = SingleReadoutDeadTimeCorrection()
algo.PyInit()
Expand Down

0 comments on commit 3dbdbae

Please sign in to comment.