Tools
- tools.compare_atoms(atoms1, atoms2, atol=1e-08, pbc=False)[source]
Check for system changes since last calculation.
- tools.find_file(name, first=True, follow_symlinks=False, name_type='f')[source]
Locate name using call to bash find.
- tools.getstatusoutput(*args, **kwargs)[source]
Helper function to replace the old commands.getstatusoutput.
Returns the returncode, stdout and sterr associated with the command.
getstatusoutput([command], stdin=subprocess.PIPE)
- tools.read_db(directory)[source]
Read the persistent data from a storq.db
- Parameters:
directory (str) – Path (relative or absolute) to the calculation directory.
- Returns:
data – Dictionary containing all the persistent data from storq.db
- Return type:
dict