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, store=True)[source]

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

Parameters:
  • config – the configuration instance
  • store – boolean, if True will write the configuration file to disk after migration has completed
Returns:

the migrated configuration instance

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, store=True)[source]

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

Parameters:
  • config – the configuration instance
  • store – boolean, if True will write the configuration file to disk after migration has completed
Returns:

the migrated configuration instance