Source code for scine_puffin.programs.gaussian

# -*- coding: utf-8 -*-
__copyright__ = """ This code is licensed under the 3-clause BSD license.
Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.
See LICENSE.txt for details.
"""

import os
from typing import List

from .program import Program
from scine_puffin.config import Configuration


[docs]class Gaussian(Program): """ Setup of the Gaussian program """
[docs] def install(self, repo_dir: str, install_dir: str, ncores: int): if self.root: pass elif self.source: raise NotImplementedError else: raise RuntimeError
[docs] def check_install(self): raise NotImplementedError
[docs] def setup_environment(self, config: Configuration, env_paths: dict, env_vars: dict): if self.root: env_vars["GAUSSIAN_BINARY_PATH"] = os.path.join(self.root, "g09") elif self.source: pass else: raise RuntimeError
[docs] def available_models(self) -> List[str]: return ["DFT", "HF"]