Skip to content

Conversation

JHopeCollins
Copy link
Member

@JHopeCollins JHopeCollins commented Aug 19, 2025

Corresponding Firedrake PR: firedrakeproject/firedrake#4526

@JHopeCollins JHopeCollins self-assigned this Aug 19, 2025
@JHopeCollins JHopeCollins added the enhancement New feature or request label Aug 19, 2025
Copy link
Collaborator

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

I wonder if we should expose the autogenerated key to the user at all. Why not just deal in the string options?

@JHopeCollins
Copy link
Member Author

I wonder if we should expose the autogenerated key to the user at all. Why not just deal in the string options?

I'd be fine with that. I can take out that part of the docstring so the only way we tell users to use the AppContext is by calling appctx['prefix_obj_option'].

with opts.inserted_options():
default = MyCustomData(10)
data = appctx.get('solver_custompc_somedata', default)
Copy link
Member

Choose a reason for hiding this comment

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

split this docstring.

with opts.inserted_options():
default = MyCustomData(10)
data = appctx.get('solver_custompc_somedata', default)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please create an issue describing what was discussed in the meeting about global options prefixes. I'd have loved to say more but my wifi was terrible!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants