from pathlib import Path


def save_NN_sequential(model, model_name):
    """
    Saving a Neural Network as h5 file
    :param model: sequential model
    :param model_name: name to save the model
    :return: True
    """
    file_name = 'Model_' + model_name
    file_path = Path().joinpath('Pickles', file_name + ".h5")
    print("The file ", file_path, "was save.")
    model.save(file_path)
    return True