-
Notifications
You must be signed in to change notification settings - Fork 19
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
WIP: Concurrent loading of ensemble #77
Conversation
Good start. Next up for grabs should be |
@berland, something like this? |
Managed to get a few tests further now.... now I got a segmentation error 😱 when running the |
@berland OK, first working version of the code. We already had a chat about some of the downsides of the code as it is per today, but maybe you can have a look and identify what really needs to be done before moving towards a merge. |
Seems to work identically in this way
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.
This looks like a more elegant way of writing it - getting rid of all the boilerplate code! 👍
There is another use of concurrent in the same file - did you consider the same approach there? Or was that any different?
src/fmu/ensemble/ensemble.py
Outdated
|
||
for realfuture in realfutures: | ||
count += self._check_loading_of_realization( | ||
realfuture.result(), "dummydirfornow", 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.
Why did you use dummy arguments?
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 updated those lines in the meanwhile by the way - let me know if that was not what you had in mind.
And I see that for the other usage there is not this additional wrapper (there is one, but it is different.). Though, we might consider changing that to the submit()
method as well - just to use the same thing.
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.
dummydir was just for laziness. Need to find a pretty solution, but it is only used for logging.
I had a look at how to remove the |
This PR is replaced by #106 |
Work towards addressing #11