Commit 623035b0 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

fixed group function

parent fba9e593
......@@ -84,8 +84,8 @@ object Picard {
case (_, Some(group)) => {
val groupId = header.indexOf(group)
if (groupId == -1) throw new IllegalArgumentException(group + " not existing in header of: " + file)
Some((for (c <- content) yield content(groupId).toString() -> {
header.zip(c).toMap
Some((for (c <- content) yield c(groupId).toString() -> {
header.filter(_ != group).zip(c).toMap
}).toMap)
}
case (1, _) => Some(header.zip(content.head).toMap)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment