aiida_crystal17.aiida_compatability module¶
Utilities for working with different versions of aiida
-
aiida_crystal17.aiida_compatability.
aiida_version
()[source]¶ get the version of aiida in use
Returns: packaging.version.Version
-
aiida_crystal17.aiida_compatability.
cmp_load_verdi_data
()[source]¶ Load the verdi data click command group for any version since 0.11.
-
aiida_crystal17.aiida_compatability.
cmp_version
(string)[source]¶ convert a version string to a packaging.version.Version
-
aiida_crystal17.aiida_compatability.
dbenv
(function)[source]¶ A function decorator that loads the dbenv if necessary before running the function.
-
aiida_crystal17.aiida_compatability.
get_calc_log
(calcnode)[source]¶ get a formatted string of the calculation log
-
aiida_crystal17.aiida_compatability.
get_data_class
(*args, **kwargs)[source]¶ Provide access to the orm.data classes with deferred dbenv loading.
compatiblity: also provide access to the orm.data.base memebers, which are loadable through the DataFactory as of 1.0.0-alpha only.
-
aiida_crystal17.aiida_compatability.
load_dbenv_if_not_loaded
(**kwargs)[source]¶ Load dbenv if necessary, run spinner meanwhile to show command hasn’t crashed.
-
aiida_crystal17.aiida_compatability.
run_get_node
(process, inputs_dict)[source]¶ an implementation of run_get_node, which is compatible with both aiida v0.12 and v1.0.0
it will also convert “options” “label” and “description” to/from the _ variant
Parameters: - process – a process
- inputs_dict (dict) – a dictionary of inputs
Returns: the calculation Node