Skip to content

Commit

Permalink
[algorithms.rules] forbid inheriting from RuleTables for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sdrave committed Apr 19, 2017
1 parent 20803a3 commit 6ac95a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pymor/algorithms/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ class RuleTableMeta(type):
def __new__(cls, name, parents, dct):
assert 'rules' not in dct
rules = []
if not {p.__name__ for p in parents} <= {'RuleTable'}:
raise NotImplementedError('Inheritance for RuleTables not implemented yet.')
for k, v in dct.items():
if isinstance(v, rule):
if not k.startswith('action_'):
Expand Down

0 comments on commit 6ac95a0

Please sign in to comment.