@@ -2935,7 +2935,7 @@ def parallel_function(morphism):
29352935 # Calling possible_periods for each prime in parallel
29362936 parallel_data = []
29372937 for q in primes (primebound [0 ], primebound [1 ] + 1 ):
2938- if not ( q in badprimes ) :
2938+ if q not in badprimes :
29392939 F = self .change_ring (GF (q ))
29402940 parallel_data .append (((F ,), {}))
29412941
@@ -6768,7 +6768,7 @@ def is_Lattes(self):
67686768 (crit_set , post_crit_set ) = crit , list (post_crit )
67696769
67706770 # All Lattes maps have 3 or 4 post critical values
6771- if not len (post_crit_set ) in [3 , 4 ]:
6771+ if len (post_crit_set ) not in [3 , 4 ]:
67726772 return False
67736773
67746774 f = F_crit .dehomogenize (1 )[0 ]
@@ -7228,7 +7228,7 @@ def lift_to_rational_periodic(self, points_modp, B=None):
72287228 while not done and k <= n :
72297229 newP = self (newP )
72307230 if newP == P :
7231- if not ( [P , k ] in good_points ) :
7231+ if [P , k ] not in good_points :
72327232 good_points .append ([newP , k ])
72337233 done = True
72347234 k += 1
@@ -7499,7 +7499,7 @@ def all_periodic_points(self, **kwds):
74997499 pos_points = []
75007500 # check period, remove duplicates
75017501 for i in range (len (all_points )):
7502- if all_points [i ][1 ] in periods and not ( all_points [i ] in pos_points ) :
7502+ if all_points [i ][1 ] in periods and all_points [i ] not in pos_points :
75037503 pos_points .append (all_points [i ])
75047504 periodic_points = DS .lift_to_rational_periodic (pos_points ,B )
75057505 for p ,n in periodic_points :
@@ -7594,7 +7594,7 @@ def all_rational_preimages(self, points):
75947594 P = points .pop ()
75957595 preimages = self .rational_preimages (P )
75967596 for i in range (len (preimages )):
7597- if not preimages [i ] in preperiodic :
7597+ if preimages [i ] not in preperiodic :
75987598 points .append (preimages [i ])
75997599 preperiodic .add (preimages [i ])
76007600 return list (preperiodic )
@@ -9073,7 +9073,7 @@ def is_newton(self, return_conjugation=False):
90739073 """
90749074 if self .degree () == 1 :
90759075 raise NotImplementedError ("degree one Newton maps are trivial" )
9076- if not self .base_ring () in NumberFields ():
9076+ if self .base_ring () not in NumberFields ():
90779077 raise NotImplementedError ("only implemented over number fields" )
90789078 # check if Newton map
90799079 sigma_1 = self .sigma_invariants (1 )
0 commit comments