Skip to content

Commit

Permalink
Fix test failure with signal_type when lumispy is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpre committed Aug 23, 2023
1 parent a0a3c20 commit 5a04609
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rsciio/tests/test_hamamatsu.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,13 @@ def test_metadata(self):
assert metadata.General.title == metadata.General.original_filename[:-4]

assert metadata.Signal.quantity == "Intensity (Counts)"
assert metadata.Signal.signal_type == ""
try:
import lumispy

signal_type = "Luminescence"
except ImportError:
signal_type = ""
assert metadata.Signal.signal_type == signal_type

assert isinstance(detector.binning, tuple)
assert len(detector.binning) == 2
Expand Down

0 comments on commit 5a04609

Please sign in to comment.