# HG changeset patch # User Nicolas Saunier # Date 1435607250 14400 # Node ID 463150a8e129184b27b39309e623dd498ba6a006 # Parent 9990ef119bceaf399ef90155482b7bdd52b5ea5f minor updates diff -r 9990ef119bce -r 463150a8e129 python/moving.py --- a/python/moving.py Mon Jun 29 08:35:27 2015 -0400 +++ b/python/moving.py Mon Jun 29 15:47:30 2015 -0400 @@ -198,8 +198,12 @@ else: raise IndexError() - def orthogonal(self): - return Point(self.y, -self.x) + def orthogonal(self, clockwise = True): + 'Returns the orthogonal vector' + if clockwise: + return Point(self.y, -self.x) + else: + return Point(-self.y, self.x) def multiply(self, alpha): 'Warning, returns a new Point' diff -r 9990ef119bce -r 463150a8e129 python/storage.py --- a/python/storage.py Mon Jun 29 08:35:27 2015 -0400 +++ b/python/storage.py Mon Jun 29 15:47:30 2015 -0400 @@ -303,7 +303,7 @@ if objectNumbers is None: query = '' elif type(objectNumbers) == int: - query = statementBeginning+'between 0 and {0} '.format(objectNumbers) + query = statementBeginning+'between 0 and {0} '.format(objectNumbers-1) elif type(objectNumbers) == list: query = statementBeginning+'in ('+', '.join([str(n) for n in objectNumbers])+') ' return query