Skip to content

Conversation

@vincentmacri
Copy link
Member

@vincentmacri vincentmacri commented Dec 5, 2025

Fixes a pickling issue I encountered while working on some function field improvements. This lets us enable some additional tests for Jacobians of function fields that were disabled due to a pickling issue with projective curves.

Previously the _open_affine and _map_from_function_field properties of projective curves would fail to pickle. We solve this by not storing them in the pickle since they are easy to recompute.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

gs = self.ambient_space().gens()
for i in range(self.ngens()):
if gs[i] not in ideal:
self._open_affine = self.affine_patch(i)
Copy link
Member Author

@vincentmacri vincentmacri Dec 5, 2025

Choose a reason for hiding this comment

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

All changes in this file before this line are just formatting changes from ruff.

@vincentmacri vincentmacri changed the title Fix for projective curve pickling Fix for projective curve pickling, enabling more tests for function field Jacobians Dec 5, 2025
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.

1 participant