-
Notifications
You must be signed in to change notification settings - Fork 104
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
Save parameters to in-memory storage between update-steps #4026
Conversation
936f15f
to
ead7a12
Compare
6ad0ecd
to
e84553c
Compare
def _save_to_temporary_storage( | ||
temporary_storage: Dict[str, "npt.NDArray[np.double]"], | ||
parameters: List[update.Parameter], | ||
A: Union["npt.NDArray[np.double]", None], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should do what annotate-python-linting says here.
@@ -9,16 +9,27 @@ def globalIndex(i, j, k, nx=10, ny=10): | |||
return i + nx * (j - 1) + nx * ny * (k - 1) | |||
|
|||
|
|||
def readParameters(filename): | |||
def readSeed(filename): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use pythonesque function names, i.e., read_seed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice 👍
With localization in ensemble smoother, intermediate update results was stored to disk. This entangled the usage of storage with running analysis. This commit keeps all parameters in memory while running analysis, and then persisting to disk when all steps are finished. Removing specialized functions for loading, saving and copying parameters Removing irrelevant tests
e84553c
to
050f5ac
Compare
test this please! |
With localization in ensemble smoother, intermediate update results was stored to disk. This entangled the usage of storage with running analysis. This commit keeps all parameters in memory while running analysis, and then persisting to disk when all steps are finished.
Removing specialized functions for loading, saving and copying parameters
Removing irrelevant tests
Issue
Resolves #3377
Approach
Short description of the approach
Pre review checklist
Adding labels helps the maintainers when writing release notes. This is the list of release note labels.