[fix] fixed truth children not receiving parents result
- they should not get preconfigured truths, only results of their parent
This commit is contained in:
@@ -63,8 +63,8 @@ class Simulation(config: Configuration) {
|
|||||||
val group = input._1
|
val group = input._1
|
||||||
val truthGroup = group.getParentOrGroup // make sure the correct ground truth gets passed
|
val truthGroup = group.getParentOrGroup // make sure the correct ground truth gets passed
|
||||||
val groupList = input._2
|
val groupList = input._2
|
||||||
// overwrite truth with value from configuration if set for this time and group
|
// overwrite truth with value from configuration if set for a non child group at this time (children just get results of their parent)
|
||||||
val prevTruth = if(!configTruths.isEmpty && configTruths.get.contains(truthGroup)) configTruths.get(truthGroup) else PrevTruths(truthGroup)
|
val prevTruth = if(group.parent.isEmpty && !configTruths.isEmpty && configTruths.get.contains(group)) configTruths.get(group) else PrevTruths(truthGroup)
|
||||||
groupList.foreach(element => {
|
groupList.foreach(element => {
|
||||||
val subGroup = element._1
|
val subGroup = element._1
|
||||||
debugf(DebugType.DEBUG, "simGroups: Time: %s | Cell: %s | Group: %s | Groupelement: %s", time.toString, cell.toString, group.toString, element._1.name)
|
debugf(DebugType.DEBUG, "simGroups: Time: %s | Cell: %s | Group: %s | Groupelement: %s", time.toString, cell.toString, group.toString, element._1.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user