meavis.filesystem.loaders module

Functions to load MeaVis description files.

meavis.filesystem.loaders.json2dict(filename, key)[source]

Load decription from JSON.

meavis.filesystem.loaders.python2dict(filename, key)[source]

Load decription from python module.

meavis.filesystem.loaders.yaml2dict(filename, key)[source]

Load decription from YAML.

class meavis.filesystem.loaders.LoadDispatcher(loader_mapping)[source]

Bases: object

Dispatcher to select appropriate loader.

__init__(loader_mapping)[source]

Intialise from a mapping between string and functions.

loads(filename, key, kind)[source]

Load a MeaVis descrption file.

Dispatch by its filename (or module name), its kind (e.g. py) and a main key as description files ebedded descriptions of multiple things.