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

Don't update concentrations if not opting in to feature #1980

Merged
merged 3 commits into from
Dec 21, 2024
Merged

Conversation

visr
Copy link
Member

@visr visr commented Dec 20, 2024

I noticed these callbacks take 50% of computational time, for which I will create a separate issue. Currently we always compute, but only write out the results if the experimental feature flag was enabled. Since it is slowing down the model, let's turn off the computation as well.

Copy link
Member

@evetion evetion left a comment

Choose a reason for hiding this comment

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

This should've been done when I implemented the experimental section. That said, can you find a way to enable it for all testmodels? Otherwise we test this codepath only for a single testmodel, instead of always/everywhere, which is a big step back.

@visr
Copy link
Member Author

visr commented Dec 20, 2024

can you find a way to enable it for all testmodels

I can add this to all testmodels:

experimental=Experimental(concentration=True),

Anything else is probably too magical.

@visr visr merged commit 13340f8 into main Dec 21, 2024
28 checks passed
@visr visr deleted the call-callback-back branch December 21, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants