From 5de84d8c67faaedde2ecd0eb8dda080b38f86023 Mon Sep 17 00:00:00 2001 From: Vivien Maisonneuve Date: Wed, 2 Jul 2014 23:25:30 +0200 Subject: [PATCH 1/1] Fix examples --- examples/nsad2010.py | 1 - examples/squares.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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 -- 2.20.1