ai4materials.utils.utils_config module

class ai4materials.utils.utils_config.SSH(hostname='172.17.0.3', username='tutorial', port=22, key_file='/home/beaker/docker.openmpi/ssh/id_rsa.mpi', password=None)[source]

Bases: object

SSH class to connect to the cluster to perform a calculation.

Code author: Emre Ahmetcik <ahmetcik@fhi-berlin.mpg.de>

close()[source]
command(cmd)[source]
exists(path)[source]
get(remotefile, localfile)[source]
get_all(remotepath, localpath)[source]
isdir(path)[source]
mkdir(path)[source]
open_file(filename)[source]
put(localfile, remotefile)[source]
put_all(localpath, remotepath)[source]
remove(path)[source]
rename(remotefile_1, remotefile_2)[source]
rm(path)[source]
sftp_walk(remotepath)[source]
ai4materials.utils.utils_config.copy_directory(src, dest)[source]
ai4materials.utils.utils_config.get_data_filename(resource, package='ai4materials')[source]

Rewrite of pkgutil.get_data() that return the file path.

Taken from: https://stackoverflow.com/questions/5003755/how-to-use-pkgutils-get-data-with-csv-reader-in-python

ai4materials.utils.utils_config.get_metadata_info()[source]

Get the descriptor metadata info

ai4materials.utils.utils_config.overwrite_configs(configs, dataset_folder=None, desc_folder=None, main_folder=None, tmp_folder=None)[source]
ai4materials.utils.utils_config.set_configs(main_folder='./', config_file=None)[source]
ai4materials.utils.utils_config.setup_logger(configs=None, level=None, display_configs=False)[source]

Given specified configurations, setup a logger.