cuisto.config
config module, part of cuisto.
Contains the Config class.
Config(config_file)
#
The configuration class.
Reads input configuration file and provides its constant.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config_file
|
str
|
Full path to the configuration file to load. |
required |
Returns:
Name | Type | Description |
---|---|---|
cfg |
Config object.
|
|
Constructor.
Source code in cuisto/config.py
get_blacklist()
#
get_hue_palette(mode)
#
Get color palette given hue.
Maps hue to colors in channels or hemispheres.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode
|
(hemisphere, channel)
|
|
"hemisphere"
|
Returns:
Name | Type | Description |
---|---|---|
palette |
dict
|
Maps a hue level to a color, usable in seaborn. |
Source code in cuisto/config.py
get_injection_sites(animals)
#
Get list of injection sites coordinates for each animals, for each channels.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
animals
|
list of str
|
List of animals. |
required |
Returns:
Name | Type | Description |
---|---|---|
injection_sites |
dict
|
{"x": {channel0: [x]}, "y": {channel1: [y]}} |