Skip to content

Commit 588fccd

Browse files
YueRenlgoettgens
andauthored
Update src/TropicalGeometry/positive_variety.jl
Co-authored-by: Lars Göttgens <[email protected]>
1 parent bfb9b47 commit 588fccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/TropicalGeometry/positive_variety.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Min tropical variety
3333
```
3434
"""
3535
function positive_tropical_variety(I::MPolyIdeal,nu::TropicalSemiringMap)
36-
if all(isequal(2),length.(gens(I)))
36+
if all(is_binomial, gens(I))
3737
if all(isequal(-1),[prod([sign(c) for c in coefficients(g)]) for g in gens(I)])
3838
# binomial ideal positive, return regular tropical variety
3939
return tropical_variety_binomial(I,nu)

0 commit comments

Comments
 (0)