Skip to content

Commit

Permalink
TropicalGeometry: make positive_tropical_variety work with old tropic…
Browse files Browse the repository at this point in the history
…alization
  • Loading branch information
YueRen committed Jan 24, 2025
1 parent b3c23d1 commit a5778ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TropicalGeometry/positive_variety.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function positive_tropical_variety(I::MPolyIdeal,nu::TropicalSemiringMap)
if all(isequal(2),length.(gens(I)))
if all(isequal(-1),[prod([sign(c) for c in coefficients(g)]) for g in gens(I)])
# binomial ideal positive, return regular tropical variety
return tropical_variety(I,nu)
return tropical_variety_binomial(I,nu)
else
# binomial ideal not positive, return empty polyhedral complex in the correct ambient dimension
return polyhedral_complex(IncidenceMatrix(zeros(Int,0,0)),zero_matrix(QQ,0,ambient_dim(TropL)))

Check warning on line 40 in src/TropicalGeometry/positive_variety.jl

View check run for this annotation

Codecov / codecov/patch

src/TropicalGeometry/positive_variety.jl#L40

Added line #L40 was not covered by tests
Expand Down

0 comments on commit a5778ed

Please sign in to comment.