File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1263,7 +1263,7 @@ def _find_contributing_points_combinatorial(
12631263 stratum = whitney_strat [i ]
12641264 if stratum .subs (
12651265 {pure_H (wi ): val for wi , val in zip (vs , x )}
1266- ) == Ideal (pure_H ( 0 )):
1266+ ) == Ideal (pure_H . zero ( )):
12671267 raise ACSVException (
12681268 "Non-generic direction detected - critical point {w} is contained in {dim}-dimensional stratum" .format (
12691269 w = str (x ), dim = i
Original file line number Diff line number Diff line change @@ -127,8 +127,8 @@ def whitney_stratification(IX, R):
127127 for fs in Combinations (factors )
128128 if len (fs ) >= 1
129129 ):
130- strat = [Ideal (R ( 1 )) for _ in range (d )]
131- strat [- 1 ] = Ideal (IX . gens () )
130+ strat = [Ideal (R . one ( )) for _ in range (d )]
131+ strat [- 1 ] = compute_radical (IX )
132132 for k in reversed (range (1 , d )):
133133 Jac = matrix ([[f .derivative (v ) for v in vs ] for f in strat [k ].gens ()])
134134 sing = compute_radical (Ideal (Jac .minors (d - k ) + strat [k ].gens ()))
@@ -144,7 +144,7 @@ def whitney_stratification(IX, R):
144144 P .subscheme (IX .change_ring (R_hom ).homogenize (z0 )), P
145145 )
146146
147- strat = [Ideal (R ( 1 )) for _ in range (len (proj_strat ))]
147+ strat = [Ideal (R . one ( )) for _ in range (len (proj_strat ))]
148148 for stratum in proj_strat :
149149 for Id in compute_primary_decomposition (stratum .defining_ideal ()):
150150 newId = Id .subs ({z0 : 1 }).change_ring (R )
You can’t perform that action at this time.
0 commit comments