diff --git a/docs/wiki/config/config_preview.yml b/docs/wiki/config/config_preview.yml index df009ae..9105c87 100644 --- a/docs/wiki/config/config_preview.yml +++ b/docs/wiki/config/config_preview.yml @@ -22,7 +22,7 @@ sensors: blocks: - start: [0, 4] end: [6, 6] - count: 180 + count: 210 - group: faultyTemp parent: temperature @@ -48,7 +48,7 @@ groundtruths: - start: 0 end: 7 - [18, 24] - - [7, 10.0] + - [7, 10] - [12, 16.0] delta: - name: fluctuate @@ -58,7 +58,7 @@ groundtruths: - [12, 16] - [18, 24] - [7, change, {range: 0.0, target: 16.0, targetTime: 12, center: [3, 3], distOffset: -0.5, time:[7]}] - - [16, change, {range: 0.0, target: 10.0, targetTime: 18, center: [3, 3], distOffset: -0.5, time:[16]}] + - [16, change, {range: 0.0, target: 10.0, targetTime: 18, center: [3, 3], distOffset: -0.5, time:[]}] - group: temperature parent: baseline diff --git a/src/main/scala/scim/components/Output.scala b/src/main/scala/scim/components/Output.scala index 9eec644..c62c03e 100644 --- a/src/main/scala/scim/components/Output.scala +++ b/src/main/scala/scim/components/Output.scala @@ -23,7 +23,8 @@ class Output(sharedMemory: SharedMemory, printOutput: Boolean = true) extends Ru cells._2.foreach(groups => { val group = groups._1 val lastElement = groups._2.lastOption - print(BLUE(" Group: ") + group + (if(!lastElement.isEmpty) MAGENTA("\n Results: ") else "")) + print(BLUE(" Group: ") + group.name + (if(!group.parent.isEmpty) BLUE( " Parent: ") + group.parent.get else "")) + print(if(!lastElement.isEmpty) MAGENTA("\n Results: ") else "") groups._2.foreach(res => print(res.get._3.getOrElse("None") + (if(res.eq(lastElement.get)) "" else " | "))) if(groundTruths.contains(cell) && groundTruths(cell).contains(group)) print(GREEN("\n Ground Truth: ") + groundTruths(cell)(group).peak().getOrElse("None")) print("\n")