get_func
Module to get write functions.
WriteFunc
#
Bases: Protocol
Protocol for type hinting write functions.
Source code in src/careamics/file_io/write/get_func.py
__call__(file_path, img, *args, **kwargs)
#
Type hinted callables must match this function signature (not including self).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_path | Path | Path to file. | required |
img | ndarray | Image data to save. | required |
*args | Other positional arguments. | () | |
**kwargs | Other keyword arguments. | {} |
Source code in src/careamics/file_io/write/get_func.py
get_write_func(data_type)
#
Get the write function for the data type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_type | (tiff, custom) | Data type. | "tiff" |
Returns:
Type | Description |
---|---|
callable | Write function. |