@@ -412,14 +412,14 @@ def _createTestFuncs(self):
412
412
for bftype in self .LocBifPoints :
413
413
if bftype in cont_bif_points :
414
414
stop = bftype in self .StopAtPoints # Set stopping flag
415
- #if bftype is 'BP':
415
+ #if bftype == 'BP':
416
416
#method = Branch_Det(self.CorrFunc, self, save=True,
417
417
#numpoints=self.MaxNumPoints+1)
418
418
#self.TestFuncs.append(method)
419
419
420
420
#self.BifPoints['BP'] = BranchPoint(method, iszero,
421
421
#stop=stop)
422
- if bftype is 'B' :
422
+ if bftype == 'B' :
423
423
method = B_Check (self .CorrFunc , self , save = True ,
424
424
numpoints = self .MaxNumPoints + 1 )
425
425
self .TestFuncs .append (method )
@@ -1878,7 +1878,7 @@ def cleanLabels(self):
1878
1878
def info (self ):
1879
1879
print (self .__repr__ ())
1880
1880
print ("Using model: %s\n " % self .model .name )
1881
- if self .description is not 'None' :
1881
+ if self .description != 'None' :
1882
1882
print ('Description' )
1883
1883
print ('----------- \n ' )
1884
1884
print (self .description , '\n ' )
@@ -2006,13 +2006,13 @@ def _createTestFuncs(self):
2006
2006
for bftype in self .LocBifPoints :
2007
2007
if bftype in equilibrium_bif_points :
2008
2008
stop = bftype in self .StopAtPoints # Set stopping flag
2009
- if bftype is 'BP' :
2009
+ if bftype == 'BP' :
2010
2010
method = Branch_Det (self .CorrFunc , self , save = True ,
2011
2011
numpoints = self .MaxNumPoints + 1 )
2012
2012
self .TestFuncs .append (method )
2013
2013
self .BifPoints ['BP' ] = BranchPoint (method , iszero ,
2014
2014
stop = stop )
2015
- elif bftype is 'LP' :
2015
+ elif bftype == 'LP' :
2016
2016
#method1 = Fold_Bor(self.CorrFunc, self, corr=False,
2017
2017
# save=True, numpoints=self.MaxNumPoints+1)
2018
2018
#method1 = Fold_Det(self.CorrFunc, self, save=True, numpoints=self.MaxNumPoints+1)
@@ -2029,7 +2029,7 @@ def _createTestFuncs(self):
2029
2029
self .BifPoints ['LP' ] = FoldPoint ([method1 , method2 ],
2030
2030
[iszero , isnotzero ],
2031
2031
stop = stop )
2032
- elif bftype is 'H' :
2032
+ elif bftype == 'H' :
2033
2033
method = Hopf_Bor (self .CorrFunc , self , corr = False ,
2034
2034
save = True , numpoints = self .MaxNumPoints + 1 )
2035
2035
#method = Hopf_Det(self.CorrFunc, self, save=True, numpoints=self.MaxNumPoints+1)
@@ -2151,18 +2151,18 @@ def _createTestFuncs(self):
2151
2151
method2 = Hopf_Bor (self .CorrFunc .sysfunc , self ,
2152
2152
save = True , numpoints = self .MaxNumPoints + 1 )
2153
2153
self .TestFuncs .append (method2 )
2154
- if bftype is 'BT' :
2154
+ if bftype == 'BT' :
2155
2155
self .BifPoints ['BT' ] = BTPoint ([method1 , method2 ],
2156
2156
[iszero , iszero ], stop = stop )
2157
2157
else :
2158
2158
self .BifPoints ['ZH' ] = ZHPoint ([method1 , method2 ],
2159
2159
[isnotzero , iszero ], stop = stop )
2160
- elif bftype is 'CP' :
2160
+ elif bftype == 'CP' :
2161
2161
method = CP_Fold (self .CorrFunc , self , save = True ,
2162
2162
numpoints = self .MaxNumPoints + 1 )
2163
2163
self .TestFuncs .append (method )
2164
2164
self .BifPoints ['CP' ] = CPPoint (method , iszero , stop = stop )
2165
- elif bftype is 'BP' :
2165
+ elif bftype == 'BP' :
2166
2166
method1 = BP_Fold (self .CorrFunc , self , 0 , save = True ,
2167
2167
numpoints = self .MaxNumPoints + 1 )
2168
2168
self .TestFuncs .append (method1 )
@@ -2280,25 +2280,25 @@ def _createTestFuncs(self):
2280
2280
for bftype in self .LocBifPoints :
2281
2281
if bftype in hopf_bif_points :
2282
2282
stop = bftype in self .StopAtPoints # Set stopping flag
2283
- if bftype is 'BT' :
2283
+ if bftype == 'BT' :
2284
2284
method = BT_Hopf_One (self .CorrFunc , self , save = True , \
2285
2285
numpoints = self .MaxNumPoints + 1 )
2286
2286
self .TestFuncs .append (method )
2287
2287
2288
2288
self .BifPoints ['BT' ] = BTPoint (method , iszero , stop = stop )
2289
- if bftype is 'DH' :
2289
+ if bftype == 'DH' :
2290
2290
method = DH_Hopf (self .CorrFunc , self , save = True , \
2291
2291
numpoints = self .MaxNumPoints + 1 )
2292
2292
self .TestFuncs .append (method )
2293
2293
2294
2294
self .BifPoints ['DH' ] = DHPoint (method , iszero , stop = stop )
2295
- elif bftype is 'ZH' :
2295
+ elif bftype == 'ZH' :
2296
2296
method = Fold_Det (self .CorrFunc .sysfunc , self , \
2297
2297
save = True , numpoints = self .MaxNumPoints + 1 )
2298
2298
self .TestFuncs .append (method )
2299
2299
2300
2300
self .BifPoints ['ZH' ] = ZHPoint (method , iszero , stop = stop )
2301
- elif bftype is 'GH' :
2301
+ elif bftype == 'GH' :
2302
2302
method = GH_Hopf_One (self .CorrFunc , self , save = True , \
2303
2303
numpoints = self .MaxNumPoints + 1 )
2304
2304
self .TestFuncs .append (method )
@@ -2434,17 +2434,17 @@ def _createTestFuncs(self):
2434
2434
for bftype in self .LocBifPoints :
2435
2435
if bftype in hopf_bif_points :
2436
2436
stop = bftype in self .StopAtPoints # Set stopping flag
2437
- if bftype is 'BT' :
2437
+ if bftype == 'BT' :
2438
2438
method = BT_Hopf (self .CorrFunc , self , save = True , numpoints = self .MaxNumPoints + 1 )
2439
2439
self .TestFuncs .append (method )
2440
2440
2441
2441
self .BifPoints ['BT' ] = BTPoint (method , iszero , stop = stop )
2442
- elif bftype is 'GH' :
2442
+ elif bftype == 'GH' :
2443
2443
method = GH_Hopf (self .CorrFunc , self , save = True , numpoints = self .MaxNumPoints + 1 )
2444
2444
self .TestFuncs .append (method )
2445
2445
2446
2446
self .BifPoints ['GH' ] = GHPoint (method , iszero , stop = stop )
2447
- elif bftype is 'ZH' :
2447
+ elif bftype == 'ZH' :
2448
2448
method = Fold_Det (self .CorrFunc .sysfunc , self , save = True , numpoints = self .MaxNumPoints + 1 )
2449
2449
self .TestFuncs .append (method )
2450
2450
@@ -2497,7 +2497,7 @@ def _createTestFuncs(self):
2497
2497
for bftype in self .LocBifPoints :
2498
2498
if bftype in fixedpoint_bif_points :
2499
2499
stop = bftype in self .StopAtPoints
2500
- if bftype is 'LPC' :
2500
+ if bftype == 'LPC' :
2501
2501
method1 = Fold_Tan (self .CorrFunc , self , save = True ,
2502
2502
numpoints = self .MaxNumPoints + 1 )
2503
2503
self .TestFuncs .append (method1 )
@@ -2508,17 +2508,17 @@ def _createTestFuncs(self):
2508
2508
method2 = self .BifPoints ['BP' ].testfuncs [0 ]
2509
2509
2510
2510
self .BifPoints ['LPC' ] = LPCPoint ([method1 , method2 ], [iszero , isnotzero ], stop = stop )
2511
- elif bftype is 'PD' :
2511
+ elif bftype == 'PD' :
2512
2512
method = PD_Det (self .sysfunc , self , save = True , numpoints = self .MaxNumPoints + 1 )
2513
2513
self .TestFuncs .append (method )
2514
2514
2515
2515
self .BifPoints ['PD' ] = PDPoint (method , iszero , stop = stop )
2516
- elif bftype is 'NS' :
2516
+ elif bftype == 'NS' :
2517
2517
method = NS_Det (self .sysfunc , self , save = True , numpoints = self .MaxNumPoints + 1 )
2518
2518
self .TestFuncs .append (method )
2519
2519
2520
2520
self .BifPoints ['NS' ] = NSPoint (method , iszero , stop = stop )
2521
- elif bftype is 'BP' :
2521
+ elif bftype == 'BP' :
2522
2522
if 'LPC' not in self .BifPoints .keys ():
2523
2523
method = Branch_Det (self .CorrFunc , self , save = True , numpoints = self .MaxNumPoints + 1 )
2524
2524
self .TestFuncs .append (method )
@@ -2626,7 +2626,7 @@ def _createTestFuncs(self):
2626
2626
for bftype in self .LocBifPoints :
2627
2627
if bftype in fold_map_bif_points :
2628
2628
stop = bftype in self .StopAtPoints
2629
- if bftype is 'CP' :
2629
+ if bftype == 'CP' :
2630
2630
method = CP_Fold (self .CorrFunc , self , save = True ,
2631
2631
numpoints = self .MaxNumPoints + 1 )
2632
2632
self .TestFuncs .append (method )
@@ -2914,7 +2914,7 @@ def _createTestFuncs(self):
2914
2914
for bftype in self .LocBifPoints :
2915
2915
if bftype in cusp_bif_points :
2916
2916
stop = bftype in self .StopAtPoints
2917
- if bftype is 'BP' :
2917
+ if bftype == 'BP' :
2918
2918
method = Branch_Det (self .CorrFunc , self , save = True ,
2919
2919
numpoints = self .MaxNumPoints + 1 )
2920
2920
self .TestFuncs .remove (self .TestFuncs [- 1 ])
0 commit comments