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

Avoid computing ess and sup_ess in psis #51

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sethaxen
Copy link
Member

This PR makes ess and sup_ess properties of Psis instead of fields, so that they are lazily computed only if necessary instead of in each psis call. It also fixes some potential issues where variables of one type are then aliased to have a different type, which may cause issues with type inference (it did in older Julia versions at least) and also makes the code more complicated.

@sethaxen
Copy link
Member Author

Note that the test suite doesn't currently pass because due to some bugs on main. I fixed one in this PR, but not the other.

@sethaxen sethaxen mentioned this pull request Sep 27, 2021
@ParadaCarleton
Copy link
Member

(I merged my own PR that lets users skip ESS computations since I wanted to merge a handful of related changes in that PR, but I'm still open to switching to this implementation if we find a way to avoid duplicate computations.)

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