-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_model.py
More file actions
36 lines (28 loc) · 915 Bytes
/
config_model.py
File metadata and controls
36 lines (28 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from pathlib import Path
from typing import Dict, List, Literal, Optional, Union
from pydantic import BaseModel, conlist
class ConfigModel(BaseModel):
data_dir: Path
cp_dir: Path
fiji_dir: Path
pipe_dir: Path
output_dir: Path
log_dir: Path
cell_config: Path
folder_merging_needed: bool = False
folders_to_merge: Optional[List[str]]
image_regex: str
focus_finding_needed: bool = False
focus_channels: List[str]
pre_stitch_correction_needed: bool = False
example_image_name: str
stitching: Dict[str, int]
Prefix: List[str]
Template: int
minsize: int
maxsize: int
Update_method: Union[Literal['EXACT'], Literal['APPROXIMATE']] = "EXACT"
Max_search_radius: int
Volume: Optional[Union[List[List[int]], Literal['auto']]] = 'auto'
Step_size: int
CP_Data_Keep: Optional[Union[List[str], Literal['all']]] = 'all'