#!/usr/bin/env python2
#
# This file is part of the dune-hdd project:
#   https://github.com/pymor/dune-hdd
# Copyright Holders: Felix Schindler
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)

from __future__ import division, print_function

import numpy as np

from pymor.core.logger import getLogger
from pymor.operators.constructions import induced_norm
from pymor.reductors.basic import reduce_generic_rb
from pymor.playground.algorithms import gram_schmidt_block_basis_extension
from pymor.playground.reductors import GenericBlockRBReconstructor

from simdb.run import add_values

from dune.pymor.la.container import make_listvectorarray

from OS2015_SISC__6_2__estimators import DetailedEstimator, ReducedEstimator


class ConfigurationError(Exception):
    """Raised when an invalid configuration is given."""


class EnrichmentError(Exception):
    """Raised when the enrichment failed."""


def online_phase(cfg, detailed_data, offline_data):