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

Fixes #769 parameter should be global for interaction container #770

Merged
merged 1 commit into from
Oct 7, 2022

Conversation

msevestre
Copy link
Member

No description provided.

@msevestre msevestre requested review from Yuri05 and PavelBal October 6, 2022 19:07
{
var node = new MoleculeTreeNode(input) {Text = input.Name, Icon = ApplicationIcons.IconByName(input.Icon)};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the changes here are just a million typos in the file. Not related to actual change


protected override ParameterBuildMode GetBuildModeType()
{
return ParameterBuildMode.Global;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the test

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Observations from the base test class are automatically executed when running the tests in the derived class?
I did not know it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah it's because it's derived and we try to find an Obervation in each class. Pretty neat (but potentially way over engineered in this case)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's pretty usefull.
In the case like this I have always defined a function testXY() in the base class and the observation in each derived class which just called testXY() - which could be avoided with this feature :)

@@ -27,7 +27,8 @@ public static IEnumerable<ParameterBuildMode> AvailableBuildModeForParameters(th
public static ParameterBuildMode DefaultParameterBuildMode(this IContainer container)
{
var needsGlobalParameter = container.IsAnImplementationOf<TransporterMoleculeContainer>() ||
container.IsAnImplementationOf<IReactionBuilder>();
container.IsAnImplementationOf<IReactionBuilder>() ||
container.IsAnImplementationOf<InteractionContainer>();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the fix

@PavelBal
Copy link
Member

PavelBal commented Oct 7, 2022

Nice! Thanks for the quick fix!

@msevestre msevestre merged commit 932ea1e into develop Oct 7, 2022
@msevestre msevestre deleted the 769-cannot-add-parameter branch October 7, 2022 12:31
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.

3 participants