Skip to content

Commit

Permalink
quickfix in VirtualResolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Feb 13, 2024
1 parent a712d0a commit 30ceddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M2/Macaulay2/packages/VirtualResolutions/helpers.m2
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ normalToricVarietyWithTateData = X -> (
-- input: multigraded polynomial ring with Tate Data
-- output: NormalToricVariety, with the given ring cached in it
normalToricVarietyFromTateData = S -> (
if S.?variety and S.?variety.?ring and S.?variety.cache.ring.?TateData then return S.variety;
if S.?variety and S.variety.cache.?ring and S.variety.cache.ring.?TateData then return S.variety;
if not S.?TateData then error "expected a ring with TateData";
X := cartesianProduct apply(toSequence dimVector S, n -> toricProjectiveSpace(n, CoefficientRing => coefficientRing S));
X.cache.ring = S; S.variety = X)
Expand Down

0 comments on commit 30ceddc

Please sign in to comment.