aiida_vasp.utils.aiida_utils#
Utils for AiiDA.
that have now standardized in AiiDA will be removed.
Module Contents#
Functions#
Instantiates and returns a QueryBuilder instance. |
|
Provide access to the orm.data classes with deferred dbenv loading. |
|
Get current user. |
|
Assemble a new Dict. |
|
Displace a position in the StructureData. |
|
Apply compression or tensile forces to the unit cell. |
|
Load the verdi data click command group for any version since 0.11. |
|
Allow the current user to use the given computer. |
|
Get an existing authinfo or None for the given computer and current user. |
|
Decorator to load a node if it is passed as a string. |
|
Decorator to load a node if it is passed as a key word argument ends with ‘node’. |
Data#
API#
- aiida_vasp.utils.aiida_utils.BASIC_DATA_TYPES = ['core.bool', 'core.float', 'core.int', 'core.list', 'core.str', 'core.dict']#
- aiida_vasp.utils.aiida_utils.querybuild(cls, **kwargs)[source]#
Instantiates and returns a QueryBuilder instance.
The QueryBuilder’s path has one vertice so far, namely this class. Additional parameters (e.g. filters or a label), can be passes as keyword arguments.
- Parameters:
label – Label to give
filters – filters to apply
project – projections
- Returns:
a QueryBuilder instance.
- aiida_vasp.utils.aiida_utils.get_data_class(data_type)[source]#
Provide access to the orm.data classes with deferred dbenv loading.
- aiida_vasp.utils.aiida_utils.displace_position(structure, displacement, entry)[source]#
Displace a position in the StructureData.
- aiida_vasp.utils.aiida_utils.compress_cell(structure, volume_change)[source]#
Apply compression or tensile forces to the unit cell.
- aiida_vasp.utils.aiida_utils.cmp_load_verdi_data()[source]#
Load the verdi data click command group for any version since 0.11.
- aiida_vasp.utils.aiida_utils.create_authinfo(computer, store=False)[source]#
Allow the current user to use the given computer.
- aiida_vasp.utils.aiida_utils.cmp_get_authinfo(computer)[source]#
Get an existing authinfo or None for the given computer and current user.