# Path: simulator/parameters.py
# def get_default_parameters():


from os.path import isdir, join, dirname, exists
from os import mkdir
from simulator import parameters
import pickle
import numpy as np
import datetime
import pandas as pd
    f.write(str(old_result_idx + 1))
    f.close()


def get_params_path(result_idx):
    return join(FOLDER_RESULTS, '{}_parameters.pkl'.format(result_idx))


def get_transaction_log_path(result_idx):
    return join(FOLDER_RESULTS, '{}_transaction_log.csv'.format(result_idx))


def get_satisfaction_log_path(result_idx):
    return join(FOLDER_RESULTS, '{}_satisfaction_log.csv'.format(result_idx))


def save_results(model):

    # create a folder to save results in
    if not isdir(FOLDER_RESULTS):
        mkdir(FOLDER_RESULTS)

    if not exists(FILE_RESULTS_IDX):
        f = open(FILE_RESULTS_IDX, 'w+')
        f.write(str(0))
        f.close()

    result_idx = get_result_idx()

    # retrieve parameters for current experiment

# Path: simulator/parameters.py
# def get_default_parameters():


# Path: experiments/result_handling.py
from os.path import isdir, join, dirname, exists
from os import mkdir
from simulator import parameters
import pickle
import numpy as np
import datetime
import pandas as pd

    f.write(str(old_result_idx + 1))
    f.close()


def get_params_path(result_idx):
    return join(FOLDER_RESULTS, '{}_parameters.pkl'.format(result_idx))


def get_transaction_log_path(result_idx):
    return join(FOLDER_RESULTS, '{}_transaction_log.csv'.format(result_idx))


def get_satisfaction_log_path(result_idx):
    return join(FOLDER_RESULTS, '{}_satisfaction_log.csv'.format(result_idx))


def save_results(model):

    # create a folder to save results in
    if not isdir(FOLDER_RESULTS):
        mkdir(FOLDER_RESULTS)

    if not exists(FILE_RESULTS_IDX):
        f = open(FILE_RESULTS_IDX, 'w+')
        f.write(str(0))
        f.close()

    result_idx = get_result_idx()

    # retrieve parameters for current experiment

    parameters = model.parameters