# -*- 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.
"""
from typing import List
from .program import Program
from scine_puffin.config import Configuration
[docs]class Database(Program):
"""
Scine: Database API -- installation and verification class
"""
[docs] def install(self, repo_dir: str, install_dir: str, ncores: int):
if self.root:
raise NotImplementedError
elif self.source:
self.scine_module_install(repo_dir, install_dir, ncores)
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:
raise NotImplementedError
elif self.source:
pass
else:
raise RuntimeError
[docs] def available_models(self) -> List[str]:
return []