aiida.manage.configuration.migrations package

Methods and definitions of migrations for the configuration file of an AiiDA instance.

aiida.manage.configuration.migrations.check_and_migrate_config(config)[source]

Checks if the config needs to be migrated, and performs the migration if needed.

Parameters

config – the configuration dictionary

Returns

the migrated configuration dictionary

Submodules

Define the current configuration version and migrations.

Defines utilities for verifying the version of the configuration file and migrating it when necessary.

aiida.manage.configuration.migrations.utils.check_and_migrate_config(config)[source]

Checks if the config needs to be migrated, and performs the migration if needed.

Parameters

config – the configuration dictionary

Returns

the migrated configuration dictionary