@@ -477,7 +477,7 @@ def __init__(self, bases, *, wedge=True, **kwargs):
477477 if self .e_sq == S (0 ):
478478 self .sing_flg = True
479479 print ('!!!!If I**2 = 0, I cannot be normalized!!!!' )
480- #raise ValueError('!!!!If I**2 = 0, I cannot be normalized!!!!')
480+ # raise ValueError('!!!!If I**2 = 0, I cannot be normalized!!!!')
481481 if self .e_sq > S (0 ):
482482 self .i = self .e / sqrt (self .e_sq )
483483 self .i_inv = self .i
@@ -951,7 +951,7 @@ def _build_connection(self):
951951
952952 ######## Functions for Calculation products of blades/bases ########
953953
954- #******************** Geometric Product (*) *********************** #
954+ # ******************* Geometric Product (*) ********************** #
955955
956956 def geometric_product_basis_blades (self , blade12 ):
957957 # geometric (*) product for orthogonal basis
@@ -1037,9 +1037,9 @@ def reduce_basis(self, blst):
10371037 blst_flg [i ] = tmp [2 ]
10381038 else : # blst_expand[i] revised
10391039 blst_coef [i ] = - blst_coef [i ]
1040- #if revision force one more pass in case revision
1041- #causes repeated index previous to revised pair of
1042- #indexes
1040+ # if revision force one more pass in case revision
1041+ # causes repeated index previous to revised pair of
1042+ # indexes
10431043 blst_flg [i ] = False
10441044 blst_expand [i ] = tmp [3 ]
10451045 blst_coef .append (- blst_coef [i ] * tmp [0 ])
@@ -1110,7 +1110,7 @@ def reduce_basis_loop(g, blst):
11101110
11111111 return True # revision complete, blst in normal order
11121112
1113- #******************* Outer/wedge (^) product ********************** #
1113+ # ****************** Outer/wedge (^) product ********************* #
11141114
11151115 @staticmethod
11161116 def blade_reduce (lst ):
@@ -1152,7 +1152,7 @@ def wedge_product_basis_blades(self, blade12): # blade12 = blade1*blade2
11521152 else :
11531153 return S (0 )
11541154
1155- #****** Dot (|) product, reft (<) and right (>) contractions ****** #
1155+ # ***** Dot (|) product, reft (<) and right (>) contractions ***** #
11561156
11571157 def _dot_product_grade (self , grade1 , grade2 , mode ):
11581158 """
@@ -2010,7 +2010,7 @@ def __init__(self, __u, __coords, *, ga, norm=False, name=None, root='e', debug=
20102010 Base Geometric Algebra
20112011 """
20122012
2013- #print '!!!Enter Sm!!!'
2013+ # print '!!!Enter Sm!!!'
20142014
20152015 if printer .GaLatexPrinter .latex_flg :
20162016 printer .GaLatexPrinter .restore ()
@@ -2033,19 +2033,19 @@ def __init__(self, __u, __coords, *, ga, norm=False, name=None, root='e', debug=
20332033 basis_str = basis_str[:-1]
20342034 """
20352035
2036- #print 'u =', u
2036+ # print 'u =', u
20372037
2038- if isinstance (u ,mv .Mv ): #Define vector manifold
2038+ if isinstance (u ,mv .Mv ): # Define vector manifold
20392039 self .ebasis = []
20402040 for coord in coords :
2041- #Partial derivation of vector function to get basis vectors
2041+ # Partial derivation of vector function to get basis vectors
20422042 self .ebasis .append (u .diff (coord ))
20432043
2044- #print 'sm ebasis =', self.ebasis
2044+ # print 'sm ebasis =', self.ebasis
20452045
20462046 self .g = []
20472047 for b1 in self .ebasis :
2048- #Metric tensor from dot products of basis vectors
2048+ # Metric tensor from dot products of basis vectors
20492049 tmp = []
20502050 for b2 in self .ebasis :
20512051 tmp .append (b1 | b2 )
@@ -2063,12 +2063,12 @@ def __init__(self, __u, __coords, *, ga, norm=False, name=None, root='e', debug=
20632063 tmp .append (diff (x_i , u_j ))
20642064 dxdu .append (tmp )
20652065
2066- #print 'dxdu =', dxdu
2066+ # print 'dxdu =', dxdu
20672067
20682068 sub_pairs = list (zip (ga .coords , u ))
20692069
2070- #Construct metric tensor form coordinate maps
2071- g = eye (n_sub ) #Zero n_sub x n_sub sympy matrix
2070+ # Construct metric tensor form coordinate maps
2071+ g = eye (n_sub ) # Zero n_sub x n_sub sympy matrix
20722072 n_range = list (range (n_sub ))
20732073 for i in n_range :
20742074 for j in n_range :
@@ -2083,8 +2083,8 @@ def __init__(self, __u, __coords, *, ga, norm=False, name=None, root='e', debug=
20832083
20842084 Ga .__init__ (self , root , g = g , coords = coords , norm = norm , debug = debug )
20852085
2086- if isinstance (u ,mv .Mv ): #Construct additional functions for vector manifold
2087- #self.r_basis_mv under construction
2086+ if isinstance (u ,mv .Mv ): # Construct additional functions for vector manifold
2087+ # self.r_basis_mv under construction
20882088
20892089 pass
20902090
0 commit comments