-
Notifications
You must be signed in to change notification settings - Fork 41
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
Inherit experiment #2535
Inherit experiment #2535
Conversation
Why should experiment annotations not be merged? That way you could specify common settings in one place in a partial base class, and "fill out" differing fields in the simulation model. I think that would be a much more useful behavior. Backwards compatibility should not be a concern, since this was previously undefined behavior, and different tools have different behavior. |
That was the result of the discussion at the previous meeting. The issue is that if you in a model have Note that the text was based on the similar text for coordinate system. I agree that having some way of specifying "inherit experiment and modify it" would be good, but this was just intended as a solution for the current issue - and not a complete design. |
Who is the quoted "you" in this context? I certainly expect that I need to check all base classes, since that is the implementation in SystemModeler.
But this paints us into a corner for no good reason, preventing the (in my opinion) better design of being able to inherit partial experiments. |
I agree with @maltelenz here, but just wanted to mention that perhaps even more important than inheriting a partial experiment annotation, is the ability to define a base class with complete experiment annotation, and then being able to override just parts of it. |
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.
See comment above.
Have (based on feedback) changed to specify that you only override specific fields. |
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.
Suggested fix for minor spelling error, otherwise looks good!
Dismissing my own review with request for changes, as I'd like to just leave a comment for now.
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 am personally in favor of accepting the PR as it is now. However, I tried to find a clear language group statement about going with this formulation, but couldn't find it. @HansOlsson could you please point us to the relevant phone meeting decision if there is one, or plan to get language group approval in the next meeting?
Language group: |
I take this for a language group approval of the current formulation, and will approve the PR accordingly. |
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.
OK, and as far as I can tell, according to phone meeting decision.
88c9a15
to
331415c
Compare
I realized that I could either spend a long time trying to figure out how to rebase/merge the current status in the proper way, and be certain that nothing was missed. Or just rebase skip and then re-add the four lines that were added. |
Specify inheritance of experiment annotation.
Closes #2314