Skip to content

Commit

Permalink
Fix for not being able to pass the indep set as a tuple of 0s and 1s
Browse files Browse the repository at this point in the history
  • Loading branch information
GDeLaurentis committed Feb 12, 2025
1 parent af03682 commit 6ad8c0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions syngular/variety.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ def point_on_variety(self, field, base_point={}, directions=None, valuations=tup
print("Codimensions:", set(indepSet.count(0) for indepSet in indepSets))
print("Number of indepSets:", len(indepSets))
chose_indepSet = indepSets[random.randint(0, len(indepSets) - 1) if indepSet is None else indepSet]
elif isinstance(indepSet, tuple):
chose_indepSet = indepSet
else:
raise NotImplementedError
indepSymbols = tuple([str(symbol) for i, symbol in enumerate(self.ring.variables) if chose_indepSet[i] == 1])
depSymbols = tuple([str(symbol)for i, symbol in enumerate(self.ring.variables) if chose_indepSet[i] == 0])
if verbose:
Expand Down

0 comments on commit 6ad8c0a

Please sign in to comment.