X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/blobdiff_plain/be3afc267db06adc04b6787d62663165f2101788..a93fd1cb792ef6dafaeb2599823256241c061cd3:/linpy/domains.py?ds=inline diff --git a/linpy/domains.py b/linpy/domains.py index 31b5c3f..7015252 100644 --- a/linpy/domains.py +++ b/linpy/domains.py @@ -278,6 +278,10 @@ class Domain(GeometricObject): Project out the sequence of symbols given in arguments, and return the resulting domain. """ + symbols = list(symbols) + for symbol in symbols: + if not isinstance(symbol, Symbol): + raise TypeError('symbols must be Symbol instances') islset = self._toislset(self.polyhedra, self.symbols) n = 0 for index, symbol in reversed(list(enumerate(self.symbols))):