Skip to content

Commit 201a6c7

Browse files
committed
Add missing check function
1 parent 93dadc9 commit 201a6c7

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

src/imcflibs/imagej/bdv.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,34 @@ def check_definition_option(self, value):
544544
"multi_multi": MULTI_MULTI_FILE,
545545
}
546546

547+
def check_definition_option_ang_ill(self, value):
548+
"""Check if the value is a valid definition option.
549+
550+
This is needed for angles and illuminations because support is not
551+
available for multiple angles and illuminations in a single file.
552+
553+
Parameters
554+
----------
555+
value : str
556+
Entered value by the user.
557+
558+
Returns
559+
-------
560+
dict(str, str): dictionary containing the correct string definition.
561+
"""
562+
if value not in [
563+
"single",
564+
"multi_multi",
565+
]:
566+
raise ValueError(
567+
"Value must be one of single, multi_multi. Support for multi_single is not available for angles and illuminations"
568+
)
569+
570+
return {
571+
"single": SINGLE_FILE,
572+
"multi_multi": MULTI_MULTI_FILE,
573+
}
574+
547575
def set_angle_definition(self, value):
548576
"""Set the value for the angle definition
549577

0 commit comments

Comments
 (0)