Skip to content

Commit

Permalink
Avoid checking whether the basis blades are blades (#275)
Browse files Browse the repository at this point in the history
Cherry-picked from @meuns' branch.

Co-authored-by: meuns <sylvain.meunier@gmail.com>
  • Loading branch information
eric-wieser and meuns authored May 2, 2020
1 parent d0af23f commit 2059f87
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions galgebra/mv.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,12 +984,10 @@ def blade_coefs(self, blade_lst=None):

if blade_lst is None:
blade_lst = self.Ga.mv_blades.flat

# print 'Enter blade_coefs blade_lst =', blade_lst, type(blade_lst), [i.is_blade() for i in blade_lst]

for blade in blade_lst:
if not blade.is_base() or not blade.is_blade():
raise ValueError("%s expression isn't a basis blade" % blade)
else:
for blade in blade_lst:
if not blade.is_base() or not blade.is_blade():
raise ValueError("%s expression isn't a basis blade" % blade)
blade_lst = [x.obj for x in blade_lst]
coefs, bases = metric.linear_expand(self.obj)
coef_lst = []
Expand Down

0 comments on commit 2059f87

Please sign in to comment.