Skip to content

Commit

Permalink
Update src/TropicalGeometry/variety_principal.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Max Horn <max@quendi.de>
  • Loading branch information
YueRen and fingolfin committed Sep 18, 2024
1 parent 4ff4584 commit 05818f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TropicalGeometry/variety_principal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function tropical_variety_principal(I::MPolyIdeal,nu::TropicalSemiringMap; weigh
###
# Construct TropicalVariety from TropicalHypersurface
###
g = first(gens(I))
g = gen(I,1)
TropV = tropical_variety(tropical_hypersurface(g,nu,weighted_polyhedral_complex_only=weighted_polyhedral_complex_only))
if !weighted_polyhedral_complex_only
set_attribute!(TropV,:algebraic_ideal,I)
Expand Down

0 comments on commit 05818f9

Please sign in to comment.