From: Vivien Maisonneuve Date: Wed, 2 Jul 2014 21:25:30 +0000 (+0200) Subject: Fix examples X-Git-Tag: 1.0~159 X-Git-Url: https://scm.cri.ensmp.fr/git/linpy.git/commitdiff_plain/5de84d8c67faaedde2ecd0eb8dda080b38f86023 Fix examples --- diff --git a/examples/nsad2010.py b/examples/nsad2010.py index 14c984c..e2cacc7 100755 --- a/examples/nsad2010.py +++ b/examples/nsad2010.py @@ -9,7 +9,6 @@ def affine_derivative_closure(T, x0s): k = Symbol('k') for x in T.symbols: - x = Symbol(x) assert x in x0s + xs for dx in dxs: assert dx.name not in T.symbols diff --git a/examples/squares.py b/examples/squares.py index d606631..6bc352a 100755 --- a/examples/squares.py +++ b/examples/squares.py @@ -64,4 +64,4 @@ print('sq6:', sq6) print('sq6 simplified:', sq6.sample()) print() #print(u.drop_dims(' ')) -print('sq7 with out constraints involving y and a', sq7.drop_dims('y a')) #drops dims that are passed +print('sq7 with out constraints involving y and a', sq7.project_out([y, a])) #drops dims that are passed