Skip to content

Commit 8f67cb0

Browse files
committed
Fix input for angle to only support input options
1 parent c03f792 commit 8f67cb0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/imcflibs/imagej/bdv.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def set_angle_definition(self, value):
580580
Parameters
581581
----------
582582
value : str
583-
One of `single`, `multi_single` or `multi_multi`.
583+
One of `single` or `multi_multi`.
584584
"""
585585
choices = self.check_definition_option_ang_ill(value)
586586
self._angle_definition = choices[value] % "angle"

tests/bdv/test_definitionoptions.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def test__definition_option():
2626
with pytest.raises(ValueError) as excinfo:
2727
def_opts.set_angle_definition(test_value)
2828
assert (
29-
str(excinfo.value) == "Value must be one of single, multi_multi or multi_single"
29+
str(excinfo.value)
30+
== "Value must be one of single, multi_multi. Support for multi_single is not available for angles and illuminations"
3031
)
3132

3233

0 commit comments

Comments
 (0)