webknossos.utils
#  
def
get_executor_for_args(
args: Union[argparse.Namespace, NoneType],
executor: Union[cluster_tools.schedulers.cluster_executor.ClusterExecutor, cluster_tools.executors.multiprocessing.MultiprocessingExecutor, NoneType] = None
) -> AbstractContextManager[Union[cluster_tools.schedulers.cluster_executor.ClusterExecutor, cluster_tools.executors.multiprocessing.MultiprocessingExecutor]]:
#  
def
named_partial(
func: Callable[..., Any],
*args: Any,
**kwargs: Any
) -> Callable[..., Any]:
#  
def
wait_and_ensure_success(
futures: List[concurrent.futures._base.Future],
progress_desc: Union[str, NoneType] = None
) -> List[Any]:
Waits for all futures to complete and raises an exception as soon as a future resolves with an error.
#  
def
copy_directory_with_symlinks(
src_path: pathlib.Path,
dst_path: pathlib.Path,
ignore: Iterable[str] = (),
make_relative: bool = False
) -> None:
Links all directories in src_path / dir_name to dst_path / dir_name.
Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as::
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows::
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
Inherited Members
- collections.abc.Mapping
- get
- keys
- items
- values