Skip to content

Commit ccddb0a

Browse files
eric-wieserutensil
authored andcommitted
Remove the broken and redundant Dop.basic (#185)
This: * Raises NameError, because `true` should be spelt `True` * If fixed, raises `AttributeError` for `ga.pdx` * Is attempting to set `ga.lgrad` as a weird alias of `ga.grad` * Is just a weird way to spell `ga.grads()`
1 parent aa29146 commit ccddb0a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

galgebra/mv.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2343,18 +2343,6 @@ def Fmt(self, fmt=1, title=None, dop_fmt=None):
23432343
else:
23442344
return s
23452345

2346-
@staticmethod
2347-
def basic(ga):
2348-
r_basis = list(ga.r_basis)
2349-
2350-
if not ga.is_ortho:
2351-
r_basis = [x / ga.e_sq for x in r_basis]
2352-
if ga.norm:
2353-
r_basis = [x / e_norm for (x, e_norm) in zip(r_basis, ga.e_norm)]
2354-
2355-
ga.lgrad = Dop(r_basis, ga.pdx, ga=ga)
2356-
ga.rgrad = Dop(r_basis, ga.pdx, ga=ga, cmpflg=true)
2357-
return ga.lgrad, ga.rgrad
23582346

23592347
################################# Alan Macdonald's additions #########################
23602348

0 commit comments

Comments
 (0)