Commit cc11cc9f authored by René Fritze's avatar René Fritze Committed by René Fritze

remove @Deprecated functions

parent 19fdca7e
......@@ -13,7 +13,6 @@ from pymor.core.exceptions import ExtensionError
from pymor.core.logger import getLogger
from pymor.parallel.dummy import dummy_pool
from pymor.parameters.base import Mu, ParameterSpace
from pymor.tools.deprecated import Deprecated
def adaptive_weak_greedy(surrogate, parameter_space, target_error=None, max_extensions=None,
......@@ -298,11 +297,6 @@ def rb_adaptive_greedy(fom, reductor, parameter_space,
return result
@Deprecated(rb_adaptive_greedy)
def adaptive_greedy(*args, **kwargs):
return rb_adaptive_greedy(*args, **kwargs)
class AdaptiveSampleSet(BasicObject):
"""An adaptive parameter sample set.
......
......@@ -11,7 +11,6 @@ from pymor.core.exceptions import ExtensionError
from pymor.core.logger import getLogger
from pymor.parallel.dummy import dummy_pool
from pymor.parallel.interface import RemoteObject
from pymor.tools.deprecated import Deprecated
def weak_greedy(surrogate, training_set, atol=None, rtol=None, max_extensions=None, pool=None):
......@@ -280,10 +279,3 @@ def _rb_surrogate_evaluate(rom=None, fom=None, reductor=None, mus=None, error_no
max_err_ind = np.argmax(errors)
return errors[max_err_ind], mus[max_err_ind]
@Deprecated(rb_greedy)
def greedy(*args, **kwargs):
if 'samples' in kwargs:
training_set = kwargs.pop('samples')
kwargs['training_set'] = training_set
return rb_greedy(*args, **kwargs)
......@@ -8,7 +8,6 @@ import numpy as np
from pymor.core.base import BasicObject, ImmutableObject, abstractmethod
from pymor.core.defaults import defaults
from pymor.tools.deprecated import Deprecated
from pymor.tools.random import get_random_state
......@@ -206,10 +205,6 @@ class VectorArray(BasicObject):
"""
raise NotImplementedError
@property
@Deprecated(to_numpy)
def data(self):
return self.to_numpy()
@abstractmethod
def append(self, other, remove_from_other=False):
......@@ -819,10 +814,6 @@ class VectorSpace(ImmutableObject):
"""
raise NotImplementedError
@Deprecated('from_numpy')
def from_data(self, data):
return self.from_numpy(data)
def __eq__(self, other):
return other is self
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment