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

New pairwise link group (from new DDI modelisation) is ignored #124

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ private Constants() {}
public static final String BOUCLE_PRENOMS = "BOUCLE_PRENOMS";
public static final String LIEN = "LIEN_";
public static final String LIENS = "LIENS";
public static final String PAIRWISE_GROUP_NAME = "LIENS";
public static final String SAME_AXIS_VALUE = "0";
public static final String NO_PAIRWISE_VALUE = "99";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ private static MetadataModel readVariables(Path variablesFilePath)

String groupName = groupElement.getAttribute("name");
String parentGroupName = groupElement.getAttribute("parent");
// To be normalized later : we don't want to create a group of variables for pairwise links.
// Pairwise links scope are the individuals
if (groupName.equals(Constants.PAIRWISE_GROUP_NAME)){
// Instead we assign temporarily the variables inside pairwise links group to the root group
getVariablesInGroup(metadataModel.getVariables(), groupNode, metadataModel.getRootGroup(), metadataModel.getSequences());
continue;
}

// Store the group
Group group;
Expand Down
Loading