aiida_amber package

Subpackages

Submodules

aiida_amber.helpers module

Helper functions for automatically setting up computer & code. Helper functions for setting up

  1. An AiiDA localhost computer

  2. A “sander” code on localhost

Note: Point 2 is made possible by the fact that the sander executable is available in the PATH on almost any UNIX system.

aiida_amber.helpers.get_code(entry_point, computer)[source]

Get local code. Sets up code for given entry point on given computer.

Parameters:
  • entry_point – Entry point of calculation plugin

  • computer – (local) AiiDA computer

Returns:

The code node

Return type:

aiida.orm.nodes.data.code.installed.InstalledCode

aiida_amber.helpers.get_computer(name='localhost', workdir=None)[source]

Get AiiDA computer. Loads computer ‘name’ from the database, if exists. Sets up local computer ‘name’, if it isn’t found in the DB.

Parameters:
  • name – Name of computer to load or set up.

  • workdir – path to work directory Used only when creating a new computer.

Returns:

The computer node

Return type:

aiida.orm.computers.Computer

aiida_amber.helpers.get_path_to_executable(executable)[source]

Get path to local executable. :param executable: Name of executable in the $PATH variable :type executable: str :return: path to executable :rtype: str

Module contents

aiida_amber

A plugin for using Amber with AiiDA for molecular dymanics simulations.