-
Notifications
You must be signed in to change notification settings - Fork 51
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 #2761 change transport direction #2818
Fixes #2761 change transport direction #2818
Conversation
if (!sameStructureVersion) | ||
return false; | ||
|
||
//For individual, there is a special handling required as we need to also check that the used expression profile have hte same structure version |
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.
typo: "hte" => the
if (!sameStructureVersion) | ||
return false; | ||
|
||
//For individual, there is a special handling required as we need to also check that the used expression profile have hte same structure version |
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.
Do we need a special handling for populations as well?
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.
nope. We dont allow commit or update for population
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
//let's compare the expression profile in each individuals and see if they are comparable | ||
//not the same length of expression profile, structural change | ||
if (usedIndividual.AllExpressionProfiles().Count != individualTemplate.AllExpressionProfiles().Count) | ||
return false; |
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.
Is it actually possible, that sameStructureVersion
in the code above is true, but we have a different number of expression profiles??
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 don't think so. you are right this check can be removed.
Agreed. I forgot to check. Still have to get used to doing this here |
Fixes #2761
Description
Probem was that it was seen as a non structural change (e.g. changing the expression profile structure). now I am also checking that all used expression profile have the same structure version
Type of change
Please mark relevant options with an
x
in the brackets.How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Reviewer checklist
Mark everything that needs to be checked before merging the PR.
This change requires a documentation update
above is selectedScreenshots (if appropriate):
Questions (if appropriate):