Skip to content

Commit

Permalink
Merge pull request #124 from InseeFr/devPairwiseChange
Browse files Browse the repository at this point in the history
New pairwise link group (from new DDI modelisation) is ignored
  • Loading branch information
alicela authored Jun 11, 2024
2 parents 11977eb + e5bffc4 commit ef6407a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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

0 comments on commit ef6407a

Please sign in to comment.