get_func
Module to get read functions.
ReadFunc
#
Bases: Protocol
Protocol for type hinting read functions.
Source code in src/careamics/file_io/read/get_func.py
__call__(file_path, *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 |
*args | Other positional arguments. | () | |
**kwargs | Other keyword arguments. | {} |
Source code in src/careamics/file_io/read/get_func.py
get_read_func(data_type)
#
Get the read function for the data type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_type | SupportedData | Data type. | required |
Returns:
Type | Description |
---|---|
callable | Read function. |