algorithms
Utilities for handling algorithms shorthand and friendly names.
UNSUPPORTED = 'I would prefer not to.'
module-attribute
#
Label for algorithm not currently supported in the napari plugin.
get_algorithm(friendly_name)
#
Return the algorithm corresponding to the friendly name.
The string returned by this method can directly be used with CAREamics configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
friendly_name | str | Friendly name. | required |
Returns:
Type | Description |
---|---|
str | Algorithm. |
Source code in src/careamics_napari/careamics_utils/algorithms.py
get_available_algorithms()
#
Return the available algorithms friendly names.
Returns:
Type | Description |
---|---|
list of str | A list of available algorithms. |
Source code in src/careamics_napari/careamics_utils/algorithms.py
get_friendly_name(algorithm)
#
Return the friendly name of an algorithm.
Friendly names are spelling out the algorithm names in a human-readable way.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
algorithm | SupportedAlgorithm | Algorithm. | required |
Returns:
Type | Description |
---|---|
str | Friendly name. |