# Path: moloi/dictionaries.py
# def addresses_dict():
#     addresses = {
#         'dataset_train': False,
#         'dataset_test': False,
#         'dataset_val': False,
#         'labels_train': False,
#         'labels_test': False,
#         'labels_val': False,
#         'maccs_train': False,
#         'maccs_test': False,
#         'maccs_val': False,
#         'morgan_train': False,
#         'morgan_test': False,
#         'morgan_val': False,
#         'spectrophore_train': False,
#         'spectrophore_test': False,
#         'spectrophore_val': False,
#         'mordred_train': False,
#         'mordred_test': False,
#         'mordred_val': False,
#         'rdkit_train': False,
#         'rdkit_test': False,
#         'rdkit_val': False,
#         'external_train': False,
#         'external_test': False,
#         'external_val': False
#         }
#     return addresses


import os
import sys
    import ConfigParser
    import configparser as ConfigParser
from moloi.dictionaries import addresses_dict

if sys.version_info[0] == 2:
else:


def read_model_config(config_path, section):
    model_config = ConfigParser.ConfigParser()

    model_config.read(config_path)
    epochs = eval(model_config.get('DEFAULT', 'epochs'))
    rparams = eval(model_config.get(section, 'rparams'))
    gparams = eval(model_config.get(section, 'gparams'))
    return epochs, rparams, gparams


def read_data_config(config_path, n_bits, split_type=False, split_size=0.1):
    # WARNING: If the value is not in the specified section, but it is in the defaul,
    # then it will be taken from the defaul. It's stupid.
    data_config = ConfigParser.ConfigParser()

# Path: moloi/dictionaries.py
# def addresses_dict():
#     addresses = {
#         'dataset_train': False,
#         'dataset_test': False,
#         'dataset_val': False,
#         'labels_train': False,
#         'labels_test': False,
#         'labels_val': False,
#         'maccs_train': False,
#         'maccs_test': False,
#         'maccs_val': False,
#         'morgan_train': False,
#         'morgan_test': False,
#         'morgan_val': False,
#         'spectrophore_train': False,
#         'spectrophore_test': False,
#         'spectrophore_val': False,
#         'mordred_train': False,
#         'mordred_test': False,
#         'mordred_val': False,
#         'rdkit_train': False,
#         'rdkit_test': False,
#         'rdkit_val': False,
#         'external_train': False,
#         'external_test': False,
#         'external_val': False
#         }
#     return addresses


# Path: moloi/config_processing.py
import os
import sys
    import ConfigParser
    import configparser as ConfigParser
from moloi.dictionaries import addresses_dict


if sys.version_info[0] == 2:
else:


def read_model_config(config_path, section):
    model_config = ConfigParser.ConfigParser()

    model_config.read(config_path)
    epochs = eval(model_config.get('DEFAULT', 'epochs'))
    rparams = eval(model_config.get(section, 'rparams'))
    gparams = eval(model_config.get(section, 'gparams'))
    return epochs, rparams, gparams


def read_data_config(config_path, n_bits, split_type=False, split_size=0.1):
    # WARNING: If the value is not in the specified section, but it is in the defaul,
    # then it will be taken from the defaul. It's stupid.
    data_config = ConfigParser.ConfigParser()

    addresses = addresses_dict()