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 #2183 wrong error range #2184

Merged
merged 2 commits into from
Apr 8, 2022
Merged

Fixes #2183 wrong error range #2184

merged 2 commits into from
Apr 8, 2022

Conversation

msevestre
Copy link
Member

No description provided.

@msevestre msevestre requested a review from Yuri05 April 8, 2022 15:40
.WithError((param, value) => PKSimConstants.Rules.Parameter.MaxGreaterThanDbMinValue(param.ParameterName, param.DbMinValue, param.Unit.ToString()));
}
}
public static IBusinessRule MinLessThanMax { get; } = CreateRule.For<ParameterRange>()
Copy link
Member Author

Choose a reason for hiding this comment

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

@Yuri05 Just creating the variable once instead of every time. much more efficvient

private static IBusinessRule nameUnique
{
get
private static IBusinessRule nameUnique { get; } = CreateRule.For<PopulationAnalysisFieldBase>()
Copy link
Member Author

Choose a reason for hiding this comment

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

Also changing some other rules to be more efficient while I am at it

@msevestre
Copy link
Member Author

@Yuri05 Merging

@msevestre msevestre merged commit a82a845 into develop Apr 8, 2022
@msevestre msevestre deleted the 2183-wrong-error-range branch April 8, 2022 16:12
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.

1 participant