-
Notifications
You must be signed in to change notification settings - Fork 15
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
Unify master jobs #870
Unify master jobs #870
Conversation
if self._start_job is not None: | ||
return self._start_job | ||
elif len(self) > 0: | ||
self._start_job = self[-1] |
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.
self[-1]
is not the same as self[0]
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 understand that they don't have the same effect, but I don't see why we should have different definitions for SerialMaster
and ParallelMaster
here
The behavior of the |
I know that they are not the same, so I'm also not trying to have one class out of them. |
My biggest problem is that I've been working on this PR for more than half a year now without being able to figure out what's the right solution. This has been a huge problem for me because I cannot easily move on as it's part of the fundamental SPHInX functionality. Since it looks like the combination of SPHInX and |
@pmrv and @ligerzero-ai : Here I am adding docstrings to some of the classes we talked about yesterday. Let me know what you think and feel free to make suggestions. |
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.
For me this pull request tries to do too many things at once, can we split it in multiple pull request? For example we could have one to unify the write_input
functions and so on.
This PR just moves the location of |
They are not included in the integration tests? |
Notebooks are not included in integration tests |
Yes I can, but your suggestion makes only sense if the changes are entangled or there are conceptually multiple changes, which is not the case here. From what I am seeing right now, you are pointing out individual changes which have nothing to do with each other. In the end, for the changes I'm proposing here it shouldn't matter whether there are n times small PR, each of which takes a shorter time to review, or one time this PR which takes n times the amount of time. |
@samwaseda I created three examples how the changes in this pull request can be split in small changes, which are easy to review: #914 , #915 and #916 . I hope this helps to demonstrate what I meant with separate pull requests, rather than one big one. |
Whatever. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Part of the reason why this PR is failing is because
InteractiveWrapper
does (not) do something thatParallelMaster
andSerialMaster
do (not). So far I failed to see what's exactly the difference, but in the meantime I try to put them closer, because a lot of functions are repeated, even though they all derive fromGenericMaster
.Main changes
input
defined inGenericMaster
collect_output
defined inGenericMaster
, which now collects everything inoutput/generic
SerialMaster
compatible with interactive jobsSerialMaster
should launch the next calculation only whenconvergence_goal
returns a job