axon_synthesis.cli.utils

Some utils for the CLI of axon-synthesis.

Functions

configure(ctx, _, filename)

Set parameter default values according to a given configuration file.

Classes

DictParam(*args[, schema])

A click parameter to process parameters given as JSON objects.

GlobalConfig(*[, debug, seed])

Class to store global configuration.

ListParam(*args[, schema])

A click parameter to process parameters given as JSON arrays.

class axon_synthesis.cli.utils.DictParam(*args, schema=None, **kwargs)

Bases: ParamType

A click parameter to process parameters given as JSON objects.

convert(value, param, ctx)

Convert a given value.

name: str = 'dict'

the descriptive name of this type

class axon_synthesis.cli.utils.GlobalConfig(*, debug=False, seed=None)

Bases: object

Class to store global configuration.

to_config(config)

Copy internal attributes in the given dictionary.

class axon_synthesis.cli.utils.ListParam(*args, schema=None, **kwargs)

Bases: ParamType

A click parameter to process parameters given as JSON arrays.

convert(value, param, ctx)

Convert a given value.

name: str = 'list'

the descriptive name of this type

axon_synthesis.cli.utils.configure(ctx: Context, _, filename: None | str)

Set parameter default values according to a given configuration file.