Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FTheoryTools] Introduce optional argument generic for literature model constructor #3578

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

HereAround
Copy link
Member

@apturner A proposal to fix the book example by introducing an optional argument to the literature model constructor.

Comment on lines -273 to +286
# Lead to error when computing singular loci - currently only monomials allowed...
#explicit_model_sections[key] = basis_of_global_sections(toric_line_bundle(value))[end]
if generic
explicit_model_sections[key] = generic_section(toric_line_bundle(value))
else
explicit_model_sections[key] = basis_of_global_sections(toric_line_bundle(value))[end]
end
Copy link
Member Author

@HereAround HereAround Apr 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the key change/proposal to make the book example function again. The remainder is cosmetics, including a doc test that will fail if there is a new breaking change to said book example.

Copy link
Collaborator

@apturner apturner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @HereAround, I think this makes sense and is the simplest fix for the problem we're in.

@apturner apturner added the backport 1.0.x Should be backported to the release 1.0 branch label Apr 10, 2024
@HereAround
Copy link
Member Author

@lkastner This is the fix that is needed to make the book work again.

I believe this also needs a backport to 1.0.x.

@HereAround HereAround merged commit b4b48b7 into oscar-system:master Apr 10, 2024
24 checks passed
@HereAround HereAround deleted the FixForBook branch April 10, 2024 15:11
@benlorenz benlorenz removed the backport 1.0.x Should be backported to the release 1.0 branch label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants