Skip to content

wkcuber.converter

# &nbsp def create_parser() -> argparse.ArgumentParser:
# &nbsp def put_default_if_not_present(args: argparse.Namespace, name: str, default: Any) -> None:
# &nbsp def put_default_from_argparser_if_not_present( args: argparse.Namespace, argparser: argparse.ArgumentParser, name: str ) -> None:
# &nbsp def add_to_set_in_dictionary(dictionary: dict, key: str, value: Any) -> None:
# &nbsp def get_source_files( input_path: str, extensions: Iterable[str], allows_single_file_input: bool ) -> List[str]:
# &nbsp def all_files_of_same_type(input_files: List[str]) -> bool:
# &nbsp class Converter:
# &nbsp Converter()
# &nbsp def accepts_input(self, source_path: str) -> bool:
# &nbsp def convert_input(self, args: argparse.Namespace) -> bool:
# &nbsp def check_path_length_and_set_prefix(self) -> int:
# &nbsp def apply_handle_function(self, handle_function: Callable, starts_with_prefix: bool) -> None:
# &nbsp class WkwConverter(Converter):
# &nbsp def accepts_input(self, source_path: str) -> bool:
# &nbsp def convert_input(self, args: argparse.Namespace) -> bool:
# &nbsp class NiftiConverter(Converter):
# &nbsp def accepts_input(self, source_path: str) -> bool:
# &nbsp def convert_input(self, args: argparse.Namespace) -> bool:
# &nbsp class KnossosConverter(Converter):
# &nbsp KnossosConverter()
# &nbsp def accepts_input(self, source_path: str) -> bool:
# &nbsp def convert_input(self, args: argparse.Namespace) -> bool:
# &nbsp def detect_dataset_and_layer_paths_with_mag(self) -> Tuple[str, Dict[str, Set[str]]]:
# &nbsp def handle_path_length_4(self, split_path: List[str]) -> None:
# &nbsp def handle_path_length_5(self, split_path: List[str]) -> None:
# &nbsp def handle_path_length_6(self, split_path: List[str]) -> None:
# &nbsp def handle_path_length_longer(self, split_path: List[str]) -> None:
# &nbsp class ImageStackConverter(Converter):
# &nbsp ImageStackConverter()
# &nbsp
@staticmethod
def get_color_of_view_configuration(index: int) -> Union[Tuple[int, int, int], NoneType]:
# &nbsp def accepts_input(self, source_path: str) -> bool:
# &nbsp def convert_input(self, args: argparse.Namespace) -> bool:
# &nbsp def detect_dataset_name_and_layer_path_to_layer_name(self) -> Tuple[str, Dict[str, str]]:
# &nbsp def handle_path_length_1(self, split_path: List[str]) -> None:
# &nbsp def handle_path_length_2(self, split_path: List[str]) -> None:
# &nbsp def handle_path_length_longer(self, split_path: List[str]) -> None:
# &nbsp class ConverterManager:
# &nbsp ConverterManager()
# &nbsp def main(args: argparse.Namespace) -> None: