Skip to main content

vame.util.auxiliary

Variational Animal Motion Embedding 1.0-alpha Toolbox © K. Luxem & P. Bauer, Department of Cellular Neuroscience Leibniz Institute for Neurobiology, Magdeburg, Germany

https://github.com/LINCellularNeuroscience/VAME Licensed under GNU General Public License v3.0

The following code is adapted from:

DeepLabCut2.0 Toolbox (deeplabcut.org) © A. & M. Mathis Labs https://github.com/AlexEMG/DeepLabCut Please see AUTHORS for contributors. https://github.com/AlexEMG/DeepLabCut/blob/master/AUTHORS Licensed under GNU Lesser General Public License v3.0

create_config_template

def create_config_template() -> Tuple[dict, ruamel.yaml.YAML]

Creates a template for the config.yaml file.

Returns:

Tuple[dict, ruamel.yaml.YAML]: A tuple containing the template dictionary and the Ruamel YAML instance.

read_config

def read_config(configname: str) -> dict

Reads structured config file defining a project.

Arguments:

  • configname str - Path to the config file.

Returns:

  • dict - The contents of the config file as a dictionary.

write_config

def write_config(configname: str, cfg: dict) -> None

Write structured config file.

Arguments:

  • configname str - Path to the config file.
  • cfg dict - Dictionary containing the config data.